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

◆ check_assign_dimensions()

template<typename T_mat , typename T_row_index , typename T_col_index >
void stan::math::indexing_< T_mat, T_row_index, T_col_index >::check_assign_dimensions ( int  rows,
int  cols 
) const
inline

Checks if desired dimensions match dimensions of the indexing.

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

Definition at line 246 of file indexing.hpp.