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

◆ num_elements() [2/3]

template<typename T , require_stan_scalar_t< T > * = nullptr>
int stan::math::num_elements ( const T &  m)
inline

Returns 1, the number of elements in a primitive type.

Returns the size of the specified matrix.

Template Parameters
Tscalar type
Parameters
xArgument of primitive type.
Returns
1
Template Parameters
Ttype of the matrix
Parameters
margument matrix
Returns
size of matrix

Definition at line 19 of file num_elements.hpp.