netket.experimental.nn.rnn.ensure_prev_neighbors

netket.experimental.nn.rnn.ensure_prev_neighbors#

netket.experimental.nn.rnn.ensure_prev_neighbors(*, reorder_idx=None, inv_reorder_idx=None, prev_neighbors=None, graph=None, check=False)[source]#

Deduce the missing arguments between reorder_idx, inv_reorder_idx, and inv_reorder_idx from the specified arguments.

See netket.experimental.models.RNN for details about the reordering indices.

If no information on neighbors or graph is provided, assumes a 1D ordering.

Parameters:
Return type:

tuple[HashableArray, HashableArray, HashableArray]