|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
1-based index (Fortran convention). More...
#include <index.hpp>
Static Public Member Functions | |
| static constexpr std::size_t | to_internal (std::size_t i) |
| static constexpr std::size_t | to_external (std::size_t i) |
Static Public Attributes | |
| static constexpr std::size_t | base = 1 |
1-based index (Fortran convention).
Index 0 is out of range: to_internal(0) wraps to SIZE_MAX, which every bounds check rejects (dense2D's element access checks ri >= num_rows() when bounds_checking is on), and which is undefined to use without one, like any out-of-range index (#838).
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
staticconstexpr |