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

◆ csr_extract() [1/2]

template<typename T >
const std::tuple< Eigen::Matrix< T, Eigen::Dynamic, 1 >, std::vector< int >, std::vector< int > > stan::math::csr_extract ( const Eigen::SparseMatrix< T, Eigen::RowMajor > &  A)

Extract the non-zero values, column indexes for non-zero values, and the NZE index for each entry from a sparse matrix.

Template Parameters
Ttype of elements in the matrix
Parameters
[in]Asparse matrix.
Returns
a tuple W,V,U.

Definition at line 25 of file csr_extract.hpp.