CCOLAMDStats¶
- class sksparse.ccolamd.CCOLAMDStats(N_rows_ignored: int, N_cols_ignored: int, Ncmpa: int, status: int, info1: int, info2: int, info3: int)[source]¶
Information statistics returned by the CCOLAMD algorithm.
This class wraps the contents of the
statsarray returned by Cccolamd()into a Python dataclass.- status[source]¶
Status code indicating the result of the CCOLAMD operation. If non-zero,
ccolamdwill throw an appropriate exception that interprets this status code.- Type:
- The following fields take on different meanings depending on the value of
- ``status``
- info1[source]¶
Value of
status:0: the highest numbered column that is unsorted or has duplicate entries.
-3: the value of
n_row.-4: the value of
n_col.-5: the value of
nnz == p[n_col].-6: the value of
p[0].-7: the required
Alenvalue.-8: the column with negative entries.
-9: the column with a row index out of bounds.
- Type:
- info2[source]¶
Value of
status:0: the last seen duplicate or unsorted row index.
-7: the actual
Alenvalue.-9: the bad row index.
- Type:
- info3[source]¶
Value of
status:0: the number of duplicates or unsorted row indices.
-9:
n_row.
- Type:
Notes
Field descriptions are adapted from SuiteSparse
ccolamd.c[1].Added in version 0.5.0.
References
Methods
Create a CCOLAMDStats instance from an array. |