1 #ifndef STAN_MATH_PRIM_MAT_FUN_CSR_EXTRACT_V_HPP 2 #define STAN_MATH_PRIM_MAT_FUN_CSR_EXTRACT_V_HPP 26 const Eigen::SparseMatrix<T, Eigen::RowMajor>& A) {
27 std::vector<int> v(A.nonZeros());
28 for (
int nze = 0; nze < A.nonZeros(); ++nze)
42 template <
typename T,
int R,
int C>
44 Eigen::SparseMatrix<T, Eigen::RowMajor> B = A.sparseView();