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

◆ add() [10/15]

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

Addition operator for an arithmetic matrix and variable (C++).

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

Definition at line 184 of file operator_addition.hpp.