pylupnt.math_utils.i_to_arr_idxs¶
- pylupnt.math_utils.i_to_arr_idxs(i: int, N: int) list ¶
Convert matrix index to array indices
- Parameters:
i (int) – row index
N (int) – number of rows
- Returns:
array indices for upper triangular part of the matrix arr2 (list): array indices for lower triangular part of the matrix
- Return type:
arr1 (list)