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

◆ subtract() [6/15]

template<typename Mat , typename Scal , require_eigen_t< Mat > * = nullptr, require_stan_scalar_t< Scal > * = nullptr, require_all_not_st_var< Scal, Mat > * = nullptr>
auto stan::math::subtract ( const Mat &  m,
const Scal  c 
)
inline

Return the result of subtracting the specified scalar from the specified matrix.

Template Parameters
Mattype of the matrix or expression
Scaltype of the scalar
Parameters
mMatrix or expression.
cScalar.
Returns
The matrix minus the scalar.

Definition at line 78 of file subtract.hpp.