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

◆ subtract() [7/15]

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

Subtraction 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 subtracting two variables.

Definition at line 118 of file operator_subtraction.hpp.