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

◆ subtract() [5/15]

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

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

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

Definition at line 61 of file subtract.hpp.