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

◆ dims() [2/6]

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

Pushes dimensions of given argument into given result vector.

For a scalar that is a no-op.

Template Parameters
typeof scalar
Parameters
xargument
resultresult

For an Eigen type those are the numbers of rows and columns.

Parameters
xargument
resultresult

Definition at line 20 of file dims.hpp.