Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

◆ sum_to_zero_vector_backprop()

template<typename T >
void stan::math::internal::sum_to_zero_vector_backprop ( T &&  y_adj,
const Eigen::VectorXd &  z_adj 
)

The reverse pass backprop for the sum_to_zero_constrain on vectors.

This is separated out so it can also be called by simplex_constrain.

Template Parameters
Ttype of the adjoint vector
Parameters
y_adjThe adjoint of the free vector (size N)
z_adjThe adjoint of the zero-sum vector (size N + 1)

Definition at line 28 of file sum_to_zero_constrain.hpp.