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

◆ add() [9/15]

template<typename Arith , typename VarMat , require_st_arithmetic< Arith > * = nullptr, require_rev_matrix_t< VarMat > * = nullptr>
auto stan::math::add ( const Arith &  a,
VarMat &&  b 
)
inline

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

Template Parameters
VarMatA matrix of vars or a var with an underlying matrix type.
ArithA type with an arithmetic Scalar type.
Parameters
aFirst variable operand.
bSecond variable operand.
Returns
Variable result of adding two variables.

Definition at line 168 of file operator_addition.hpp.