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

◆ add() [13/15]

template<typename Var , typename VarMat , require_var_vt< std::is_arithmetic, Var > * = nullptr, require_rev_matrix_t< VarMat > * = nullptr>
auto stan::math::add ( VarMat &&  a,
const Var &  b 
)
inline

Addition operator for a variable matrix and variable (C++).

Template Parameters
VarMatAn Eigen Matrix type with a variable Scalar type or a var_value with an underlying matrix type.
VarA var_value with an underlying arithmetic type.
Parameters
aFirst variable operand.
bSecond variable operand.
Returns
Variable result of adding two variables.

Definition at line 249 of file operator_addition.hpp.