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

◆ subtract() [11/15]

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

Subtraction operator for a variable and arithmetic matrix.

Template Parameters
EigMatAn Eigen Matrix type with an arithmetic Scalar 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 220 of file operator_subtraction.hpp.