[−][src]Function suitesparse_camd_sys::camd_valid
pub unsafe extern "C" fn camd_valid(
n_rows: SuiteSparseInt,
n_cols: SuiteSparseInt,
ap: *const SuiteSparseInt,
ai: *const SuiteSparseInt
) -> SuiteSparseInt
Checks if the matrix A represented by its index pointer array
ap
and its indices array ai
is suitable to pass to camd_order
.
Will return CAMD_OK
if the matrix is suitable, and CAMD_OK_BUT_JUMBLED
if the matrix has unsorted or duplicate row indices in one or more columns.
The matrix must be square, ie n_rows == n_cols
.
Otherwise CAMD_INVALID
will be returned.