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

◆ size()

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

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

Returns the size of the provided Eigen matrix, expression or std::vector.

Returns the length of primitive scalar types that are always of length 1.

Parameters
minput to determine size of
Returns
number of elements in m
Parameters
minput Eigen Matrix, expression or std::vector
Template Parameters
Ttype of m

Definition at line 19 of file size.hpp.