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

◆ add() [12/15]

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

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

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

Definition at line 220 of file operator_addition.hpp.