|
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/identity.hpp>#include <mtl/math/accumulator_traits.hpp>#include <mtl/interface/dispatch_traits.hpp>#include <mtl/traits/is_expression.hpp>#include <mtl/mat/dense2D.hpp>#include <mtl/operation/mult.hpp>Namespaces | |
| namespace | mtl |
| namespace | mtl::detail |
| mat*vec multiply into pre-allocated y: y = A * x. | |
Functions | |
| template<typename Accumulator = void, Scalar S, Matrix MA, Matrix MB, Matrix MC> | |
| void | mtl::symm (const S &alpha, const MA &A, const MB &B, const S &beta, MC &C) |
| Symmetric matrix-matrix product: C = alpha*A*B + beta*C, A assumed symmetric. | |
Variables | |
| template<typename Accumulator, typename MA, typename MB, typename MC> | |
| constexpr bool | mtl::detail::symm_dispatches_blas_v |
| Whether symm<Accumulator>(alpha, A, B, beta, C) calls ?symm (for sizes that fit an int). | |
| template<typename MA, typename MB, typename MC> | |
| constexpr bool | mtl::detail::symm_uses_blocked_v |
| Whether symm<void> on this build expands A and calls the native blocked GEMM (#724): MTL5_NATIVE_FAST_GEMM, float or double, dense A and B, row-major C. | |
| template<typename MB> | |
| constexpr bool | mtl::detail::symm_uses_row_loop_v = row_major_contiguous_v<MB> |
| Whether the generic symm<void> forms C row by row over a row-major B (#724). | |