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

◆ check_assign_dimensions()

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

Sets the dimensions of the underlying expressions if possible.

If not checks whether they have correct dimensions.

Parameters
rowsdesired number of rows
colsdesired number of columns
Exceptions
std::invalid_argumentdesired dimensions do not match with dimensions of underlying expression that can not be resized.

Definition at line 121 of file transpose.hpp.