pylupnt.math_utils.arr_to_mat_idx¶
- pylupnt.math_utils.arr_to_mat_idx(k: int, n: int) tuple ¶
Convert array index to matrix indices
- Parameters:
k (int) – array index
n (int) – number of rows
- Returns:
row index j (int): column index
- Return type:
i (int)