|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
Static-rank shape: an array of N extents. More...
#include <shape.hpp>
Public Member Functions | |
| constexpr | shape ()=default |
| constexpr | shape (std::array< std::size_t, N > ext) |
| constexpr | shape (std::initializer_list< std::size_t > il) |
| Throws std::invalid_argument unless the list has exactly N extents, in every build (#856: an assert, so a longer list was read past N and a shorter one read past its end under NDEBUG). | |
| constexpr std::size_t | operator[] (std::size_t i) const |
| constexpr std::size_t & | operator[] (std::size_t i) |
| constexpr const std::array< std::size_t, N > & | extents () const |
| constexpr std::size_t | total_size () const |
| constexpr bool | operator== (const shape &) const =default |
Static Public Attributes | |
| static constexpr std::size_t | rank = N |
Static-rank shape: an array of N extents.
|
constexprdefault |
|
inlineconstexpr |
|
inlineconstexpr |
Throws std::invalid_argument unless the list has exactly N extents, in every build (#856: an assert, so a longer list was read past N and a shorter one read past its end under NDEBUG).
|
inlineconstexpr |
|
constexprdefault |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
staticconstexpr |