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

◆ chain_internal() [3/3]

template<typename Result_ , typename WMat_ , typename B_ >
template<typename Result , typename WMat , typename B , require_not_rev_matrix_t< WMat > * = nullptr, require_rev_matrix_t< B > * = nullptr>
void stan::math::internal::csr_adjoint< Result_, WMat_, B_ >::chain_internal ( Result &&  res,
WMat &&  w_mat,
B &&  b 
)
inline

Overload for calculating adjoints of b

Template Parameters
ResultEither a type inheriting from Eigen::DenseBase with scalar type var or a var<T> where T inherits from Eigen::DenseBase
WMatEither a type inheriting from Eigen::DenseBase with scalar type double
BEither a type inheriting from Eigen::DenseBase with scalar type var 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 99 of file csr_matrix_times_vector.hpp.