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

◆ add() [7/15]

template<typename VarMat1 , typename VarMat2 , require_all_rev_matrix_t< VarMat1, VarMat2 > * = nullptr>
auto stan::math::add ( VarMat1 &&  a,
VarMat2 &&  b 
)
inline

Addition operator for matrix variables (C++).

Template Parameters
VarMat1A matrix of vars or a var with an underlying matrix type.
VarMat2A matrix of vars or a var with an underlying matrix type.
Parameters
aFirst variable operand.
bSecond variable operand.
Returns
Variable result of adding two variables.

Definition at line 111 of file operator_addition.hpp.