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

◆ add() [5/15]

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

Return the sum of the specified matrix and specified scalar.

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

Definition at line 60 of file add.hpp.