Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

◆ num_elements() [2/2]

template<typename T >
int64_t 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 47 of file num_elements.hpp.