Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ arena_matrix() [2/8]

template<typename MatrixType >
stan::math::arena_matrix< MatrixType, require_eigen_sparse_base_t< MatrixType > >::arena_matrix ( Eigen::Index  rows,
Eigen::Index  cols,
Eigen::Index  nnz,
StorageIndex outerIndexPtr,
StorageIndex innerIndexPtr,
Scalar valuePtr,
StorageIndex innerNonZerosPtr = nullptr 
)
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.

Parameters
rowsNumber of rows
colsNumber of columns
nnzNumber of nonzero items in matrix
outerIndexPtrA pointer to the array of outer indices.
innerIndexPtrA pointer to the array of inner indices.
valuePtrA pointer to the array of values.
innerNonZerosPtrA pointer to the array of the number of non zeros of the inner vectors.

Definition at line 170 of file arena_matrix.hpp.