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

◆ num_elements() [1/2]

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

Returns the number of the elements of a matrix_cl or var_value<matrix_cl<T>>.

Returns the size of the specified matrix.

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

Parameters
minput to determine size of
Returns
number of elements in m
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 20 of file num_elements.hpp.