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

◆ operator-() [16/18]

template<typename VarMat1 , typename VarMat2 , require_any_var_matrix_t< VarMat1, VarMat2 > * = nullptr>
auto stan::math::operator- ( const VarMat1 &  a,
const VarMat2 &  b 
)
inline

Addition operator for matrix variables.

Template Parameters
VarMat1A matrix of vars or a var with an underlying matrix type.
VarMat2A matrix of vars or a var with an underlying matrix type.
Parameters
aFirst variable operand.
bSecond variable operand.
Returns
Variable result of adding two variables.

Definition at line 309 of file operator_subtraction.hpp.