|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
#include <algorithm>#include <cassert>#include <cstddef>#include <limits>#include <type_traits>#include <vector>#include <mtl/concepts/scalar.hpp>#include <mtl/concepts/matrix.hpp>#include <mtl/math/accumulator_traits.hpp>#include <mtl/math/identity.hpp>#include <mtl/interface/dispatch_traits.hpp>Namespaces | |
| namespace | mtl |
| namespace | mtl::detail |
| mat*vec multiply into pre-allocated y: y = A * x. | |
Functions | |
| template<typename S, typename MA, typename MB> | |
| void | mtl::detail::trsm_rows (const S &alpha, const MA &A, MB &B, bool upper, bool unit_diag, typename MA::size_type b0, typename MA::size_type b1) |
| The generic solve on a row-major B, a whole row of B at a time (#724). | |
| template<typename S, typename MA, typename MB> | |
| void | mtl::detail::trsm_rows (const S &alpha, const MA &A, MB &B, bool upper, bool unit_diag) |
| template<typename Accumulator = void, Scalar S, Matrix MA, Matrix MB> | |
| void | mtl::trsm (const S &alpha, const MA &A, MB &B, bool upper, bool unit_diag=false) |
| Triangular solve with multiple RHS: solve A * X = alpha * B, B := X. | |
Variables | |
| template<typename Accumulator, typename MA, typename MB> | |
| constexpr bool | mtl::detail::trsm_dispatches_blas_v |
| Whether trsm<Accumulator>(alpha, A, B, ...) calls ?trsm (for sizes that fit an int). | |
| template<typename MB> | |
| constexpr bool | mtl::detail::trsm_uses_row_loop_v = row_major_contiguous_v<MB> |
| Whether the generic trsm<void> solves a row-major B row by row (#724). | |
| template<typename MA, typename MB> | |
| constexpr bool | mtl::detail::trsm_uses_blocked_v |
| Whether trsm<void> on this build takes the blocked solve over the native GEMM (#724): MTL5_NATIVE_FAST_GEMM, float or double, dense A, row-major B. | |