Module index

Module index 

Source
Expand description

Implements methods to pre-process indices under certain conditions.

Functionsยง

bit_reverse_permutation
Applies bit-reversed permutation to the input array Computes the Bit-Reversed order (BO) of an array.
evaluate_index
Converts index into an i64 that must be greater or equal than 0 and must fit into an i64.
evaluate_index_for_vector
Evaluates whether the provided index is referencing an entry in a vector. Negative indices are allowed and reference entries form the end of the vector.
evaluate_indices
Converts index1 and index2 into i64 that must be greater than 0 and must fit into an i64.
evaluate_indices_for_matrix
Evaluates whether the provided row and column are referencing an entry in a matrix. Negative indices are allowed and reference rows and columns form the end of the matrix.