Check if the two containers have the same dimensions.
Check if two matrices have the same row and column dimensions.
- Template Parameters
-
| T1 | type of the first container |
| T2 | type of the second container |
- Parameters
-
| function | name of function (for error messages) |
| name1 | variable name for the first container (for error messages) |
| y1 | first container to test |
| name2 | variable name for the second container (for error messages) |
| y2 | second container to test |
- Exceptions
-
| <code>std::invalid_argument</code> | if the dimensions of the containers do not match |
- Template Parameters
-
- Parameters
-
| function | name of function (for error messages) |
| name1 | variable name for the first container (for error messages) |
| y1 | first matrix to test |
| name2 | variable name for the second container (for error messages) |
| y2 | second matrix to test |
- Exceptions
-
| <code>std::invalid_argument</code> | if the dimensions of the containers do not match |
- Template Parameters
-
- Parameters
-
| function | name of function (for error messages) |
| name1 | variable name for the first container (for error messages) |
| y1 | first argument to test |
| name2 | variable name for the second container (for error messages) |
| y2 | second argument to test |
- Exceptions
-
| <code>std::invalid_argument</code> | if the dimensions of the containers do not match |
Definition at line 29 of file check_matching_dims.hpp.