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

◆ num_elements() [3/3]

template<typename T >
int stan::math::num_elements ( const std::vector< T > &  v)
inline

Returns the number of elements in the specified vector.

This assumes it is not ragged and that each of its contained elements has the same number of elements.

Template Parameters
Ttype of elements in the vector
Parameters
vargument vector
Returns
number of contained arguments

Definition at line 46 of file num_elements.hpp.