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

◆ dims() [3/6]

template<typename T , typename Alloc >
void stan::math::dims ( const std::vector< T, Alloc > &  x,
std::vector< int > &  result 
)
inline

Pushes dimensions of given argument into given result vector.

For a std::vector that is its size and dimensions of its elements.

Template Parameters
typeof scalar
Alloctype of allocator
Parameters
xargument
resultresult

Definition at line 45 of file dims.hpp.