|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
#include <cstddef>#include <cassert>#include <bit>#include <limits>#include <stdexcept>#include <type_traits>#include <mtl/detail/exceptions.hpp>Classes | |
| class | mtl::recursion::recursator< Matrix > |
| Wraps a matrix and provides quad-tree subdivision for block-recursive algorithms. More... | |
Namespaces | |
| namespace | mtl |
| namespace | mtl::recursion |
Functions | |
| constexpr bool | mtl::recursion::is_power_of_2 (std::size_t n) |
| True if n is a power of 2. | |
| constexpr std::size_t | mtl::recursion::first_part (std::size_t n) |
| Largest power of 2 that is <= n (for n >= 1). | |
| constexpr std::size_t | mtl::recursion::outer_bound (std::size_t n) |
| Smallest power of 2 that is >= n. | |
| template<typename Matrix, typename Function, typename BaseCaseTest> | |
| void | mtl::recursion::for_each (recursator< Matrix > rec, Function &&fn, const BaseCaseTest &is_base) |
| Recursively apply function to all base-case sub-regions of the recursator. | |