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

◆ subtract() [4/15]

template<typename Mat1 , typename Mat2 , require_all_eigen_t< Mat1, Mat2 > * = nullptr, require_all_not_st_var< Mat1, Mat2 > * = nullptr>
auto stan::math::subtract ( const Mat1 &  m1,
const Mat2 &  m2 
)
inline

Return the result of subtracting the second specified matrix from the first specified matrix.

Template Parameters
Mat1type of the first matrix or expression
Mat2type of the second matrix or expression
Parameters
m1First matrix or expression.
m2Second matrix or expression.
Returns
Difference between first matrix and second matrix.

Definition at line 43 of file subtract.hpp.