MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
trmm.hpp File Reference
#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/operation/mult.hpp>
#include <mtl/traits/is_expression.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::trmm_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 product on a row-major B, a whole row of B at a time (#724).
template<typename S, typename MA, typename MB>
void mtl::detail::trmm_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::trmm (const S &alpha, const MA &A, MB &B, bool upper, bool unit_diag=false)
 Triangular matrix-matrix product: B = alpha * A * B, A upper/lower triangular.

Variables

template<typename Accumulator, typename MA, typename MB>
constexpr bool mtl::detail::trmm_dispatches_blas_v
 Whether trmm<Accumulator>(alpha, A, B, ...) calls ?trmm (for sizes that fit an int and a nonzero alpha).
template<typename MB>
constexpr bool mtl::detail::trmm_uses_row_loop_v = row_major_contiguous_v<MB>
 Whether the generic trmm<void> forms a row-major B row by row (#724).
template<typename MA, typename MB>
constexpr bool mtl::detail::trmm_uses_blocked_v
 Whether trmm<void> on this build takes the blocked product over the native GEMM (#724): as trsm_uses_blocked_v.