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

◆ add() [6/15]

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

Return the sum of the specified scalar and specified matrix.

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

Definition at line 76 of file add.hpp.