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

◆ add() [8/15]

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

Addition operator for a matrix variable and arithmetic (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 142 of file operator_addition.hpp.