|
Stratax 0.2.0
|
Go to the source code of this file.
Namespaces | |
| namespace | stratax |
| namespace | stratax::core |
| namespace | stratax::core::validation |
Functions | |
| std::size_t | stratax::core::validation::nonnegative_shape_dimension (std::ptrdiff_t value, const char *message) |
| Converts a signed shape dimension to std::size_t after rejecting negatives. | |
| std::size_t | stratax::core::validation::positive_shape_dimension (std::ptrdiff_t value, const char *message) |
| Converts a signed shape dimension to std::size_t after requiring it to be positive. | |
| void | stratax::core::validation::require_positive_shape_dimension (std::size_t value, const char *message) |
| Requires an unsigned shape dimension to be positive. | |
| template<typename Lhs, typename Rhs> | |
| bool | stratax::core::validation::same_shape (const Lhs &lhs, const Rhs &rhs) |
| Returns whether two array-like objects have identical size and shape. | |
| template<typename Lhs, typename Rhs> | |
| void | stratax::core::validation::require_same_shape (const Lhs &lhs, const Rhs &rhs, const char *message) |
| Requires two array-like objects to have identical size and shape. | |
| void | stratax::core::validation::require_equal_size (std::size_t lhs, std::size_t rhs, const char *message) |
| Requires two sizes to be equal. | |