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

◆ subtract() [8/15]

template<typename Arith , typename VarMat , require_st_arithmetic< Arith > * = nullptr, require_rev_matrix_t< VarMat > * = nullptr>
auto stan::math::subtract ( const VarMat &  a,
const Arith &  b 
)
inline

Subtraction operator for a matrix variable and arithmetic.

Template Parameters
VarMatA matrix of vars or a var with an underlying matrix type.
ArithA type with an arithmetic Scalar type.
Parameters
aFirst variable operand.
bSecond variable operand.
Returns
Variable result of subtracting two variables.

Definition at line 149 of file operator_subtraction.hpp.