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

◆ make_csr_adjoint()

template<typename Result_ , typename WMat_ , typename B_ >
void stan::math::internal::make_csr_adjoint ( Result_ &&  res,
WMat_ &&  w_mat,
B_ &&  b 
)
inline

Helper function to construct the csr_adjoint struct.

Template Parameters
Result_Either a type inheriting from Eigen::DenseBase with scalar type var or a var<T> where T inherits from Eigen::DenseBase
WMat_Either a type inheriting from Eigen::DenseBase with scalar type var or double. Or a var<T> where T inherits from Eigen::SparseBase
B_Either a type inheriting from Eigen::DenseBase with scalar type var or double. Or a var<T> where T inherits from Eigen::DenseBase
Parameters
resThe vector result of the forward pass calculation
w_matA sparse matrix
bA vector

Definition at line 119 of file csr_matrix_times_vector.hpp.