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

◆ check_assign_dimensions()

template<typename T >
void stan::math::as_column_vector_or_scalar_< T >::check_assign_dimensions ( int  rows,
int  cols 
) const
inline

Checks if desired dimensions match dimensions of the argument vector.

Parameters
rowsdesired number of rows
colsdesired number of columns
Exceptions
std::invalid_argumentdesired dimensions do not match dimensions of the block.

Definition at line 289 of file as_column_vector_or_scalar.hpp.