|
|
IT | n |
| |
|
IT | nnz |
| |
|
IT * | row_ptr |
| |
|
IT * | col_idx |
| |
|
DT * | data |
| |
|
std::vector< IT > | row_storage |
| |
|
std::vector< IT > | col_storage |
| |
|
std::vector< DT > | data_storage |
| |
◆ sparse_csr_mat()
template<data_t DT, index_t IT>
template<data_t DT2, index_t IT2>
Construct a CSR matrix from a COO matrix. The input matrix will be sorted, duplicated entries will be summed.
- Parameters
-
| coo | The input matrix in the COO format. |
| one_based | Indicate if the input matrix uses one based indexing (if true) or zero based indexing (if false). This flag will be used to generate correct row indexing. |
| full | Some solvers require diagonal entries to be explicitly present even if they are trivial, if true, all diagonal entries will be explicitly set regardless of the actual values. |
The documentation for this struct was generated from the following file: