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

◆ check_assign_dimensions()

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

Checks if desired dimensions match dimensions of the block.

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

Definition at line 118 of file diagonal.hpp.