![]() |
Stan Math Library
5.2.0
Automatic Differentiation
|
|
inline |
Constructor for CDC formatted data.
Assumes compressed and does not own memory.
Constructs a read-write Map to a sparse matrix of size rows x cols, containing nnz non-zero coefficients, stored as a sparse format as defined by the pointers outerIndexPtr, innerIndexPtr, and valuePtr. If the optional parameter innerNonZerosPtr is the null pointer, then a standard compressed format is assumed.
| rows | Number of rows |
| cols | Number of columns |
| nnz | Number of nonzero items in matrix |
| outerIndexPtr | A pointer to the array of outer indices. |
| innerIndexPtr | A pointer to the array of inner indices. |
| valuePtr | A pointer to the array of values. |
| innerNonZerosPtr | A pointer to the array of the number of non zeros of the inner vectors. |
Definition at line 214 of file arena_matrix.hpp.