Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::internal::csr_adjoint< Result_, WMat_, B_ > Struct Template Reference

Detailed Description

template<typename Result_, typename WMat_, typename B_>
struct stan::math::internal::csr_adjoint< Result_, WMat_, B_ >

vari for csr_matrix_times_vector

Note
csr_matrix_times_vector uses the old inheritance style to set up the reverse pass because of a linking issue on windows when using flto.
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

Definition at line 31 of file csr_matrix_times_vector.hpp.

#include <csr_matrix_times_vector.hpp>

+ Inheritance diagram for stan::math::internal::csr_adjoint< Result_, WMat_, B_ >:

Public Member Functions

template<typename T1 , typename T2 , typename T3 >
 csr_adjoint (T1 &&res, T2 &&w_mat, T3 &&b)
 
void chain ()
 
template<typename Result , typename WMat , typename B , require_rev_matrix_t< WMat > * = nullptr, require_rev_matrix_t< B > * = nullptr>
void chain_internal (Result &&res, WMat &&w_mat, B &&b)
 Overload for calculating adjoints of w_mat and b
 
template<typename Result , typename WMat , typename B , require_rev_matrix_t< WMat > * = nullptr, require_not_rev_matrix_t< B > * = nullptr>
void chain_internal (Result &&res, WMat &&w_mat, B &&b)
 Overload for calculating adjoints of w_mat
 
template<typename Result , typename WMat , typename B , require_not_rev_matrix_t< WMat > * = nullptr, require_rev_matrix_t< B > * = nullptr>
void chain_internal (Result &&res, WMat &&w_mat, B &&b)
 Overload for calculating adjoints of b
 

Public Attributes

std::decay_t< Result_ > res_
 
std::decay_t< WMat_ > w_mat_
 
std::decay_t< B_ > b_
 

The documentation for this struct was generated from the following file: