|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
#include <algorithm>#include <cstddef>#include <mtl/detail/thread_pool.hpp>#include <mtl/interface/dispatch_traits.hpp>#include <mtl/math/accumulator_traits.hpp>Namespaces | |
| namespace | mtl |
| namespace | mtl::detail |
| mat*vec multiply into pre-allocated y: y = A * x. | |
Functions | |
| template<typename Acc, typename Value, bool Threadable, typename MapFn> | |
| Acc | mtl::detail::accumulate (std::size_t n, std::size_t grain, MapFn &&map) |
| Accumulate map(acc, begin, end) over [0, n) into a cleared Acc. | |
Variables | |
| template<typename Acc, typename Value> | |
| constexpr std::size_t | mtl::detail::accumulate_chunk_units |
| Iteration units per chunk for a reduction of Value terms into Acc: the smaller of the two types' budgets, since either a software-emulated element or a software accumulator makes each term cost a call rather than a flop. | |