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

◆ subtract() [10/15]

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

Subtraction operator for an arithmetic matrix and variable.

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

Definition at line 201 of file operator_subtraction.hpp.