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

◆ subtract() [13/15]

template<typename Var , typename VarMat , require_rev_matrix_t< VarMat > * = nullptr, require_var_vt< std::is_arithmetic, Var > * = nullptr>
auto stan::math::subtract ( const VarMat &  a,
const Var &  b 
)
inline

Subtraction operator for a variable matrix and variable.

Template Parameters
VarMatAn Eigen Matrix type with a variable Scalar type or a var_value with an underlying matrix type.
VarA var_value with an underlying arithmetic type.
Parameters
aFirst variable operand.
bSecond variable operand.
Returns
Variable result of subtracting two variables.

Definition at line 269 of file operator_subtraction.hpp.