1#ifndef STAN_MATH_PRIM_FUN_CSR_EXTRACT_V_HPP
2#define STAN_MATH_PRIM_FUN_CSR_EXTRACT_V_HPP
27 const Eigen::SparseMatrix<T, Eigen::RowMajor>& A) {
28 std::vector<int> v(A.nonZeros());
29 for (
int nze = 0; nze < A.nonZeros(); ++nze) {
47template <
typename T, require_eigen_dense_base_t<T>* =
nullptr>
50 Eigen::SparseMatrix<scalar_type_t<T>, Eigen::RowMajor> B
ref_type_t< T && > to_ref(T &&a)
This evaluates expensive Eigen expressions.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...