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

◆ check_assign_dimensions()

template<typename Derived , typename Scalar , typename... Args>
void stan::math::operation_cl_lhs< Derived, Scalar, Args >::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 165 of file operation_cl_lhs.hpp.