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

◆ csr_extract_v() [2/2]

template<typename T , require_eigen_dense_base_t< T > * = nullptr>
const std::vector< int > stan::math::csr_extract_v ( const T &  A)

Extract the column indexes for non-zero values from a dense matrix by converting to sparse and calling the sparse matrix extractor.

Template Parameters
Ttype of elements in the matrix
Rnumber of rows, can be Eigen::Dynamic
Cnumber of columns, can be Eigen::Dynamic
Parameters
[in]Adense matrix.
Returns
Array of column indexes to non-zero entries of A.

Definition at line 48 of file csr_extract_v.hpp.