Function amici::unravel_index(sunindextype, SUNMatrix)
Defined in File sundials_matrix_wrapper.h
Function Documentation
-
std::pair<sunindextype, sunindextype> amici::unravel_index(sunindextype i, SUNMatrix m)
Convert a flat index to a pair of row/column indices.
- Parameters:
i – flat index
m – referred to matrix
- Returns:
row index, column index