#include <stdexcept>
#include <utility>
#include <source_location>
#include <sstream>
#include <string_view>
#include "NeoN/core/primitives/label.hpp"
#include "NeoN/core/error.hpp"
Go to the source code of this file.
|
| namespace | NeoN |
| | Integer types used throughout NeoN.
|
◆ NeoN_ASSERT_EQUAL_LENGTH
| #define NeoN_ASSERT_EQUAL_LENGTH |
( |
| _op1, |
|
|
| _op2 ) |
Value: auto s1 = static_cast<localIdx>(_op1.size()); \
auto s2 = static_cast<localIdx>(_op2.size()); \
if (s1 != s2) \
{ \
throw ::NeoN::DimensionMismatch( \
__FILE__, __LINE__, __func__, s1, s2, "expected equal dimensions" \
); \
}
Asserts that _op1 and _op2 have the same length.
- Exceptions
-
| DimensionMismatch | if _op1 and _op2 differ in the number of rows or columns |
Definition at line 106 of file exceptions.hpp.