MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
syr2k.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/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::syr2k (const S &alpha, const MA &A, const MB &B, const S &beta, MC &C)
 Symmetric rank-2k update: C = alpha*(A*B^T + B*A^T) + beta*C, C symmetric.

Variables

template<typename Accumulator, typename MA, typename MB, typename MC>
constexpr bool mtl::detail::syr2k_dispatches_blas_v
 Whether syr2k<Accumulator>(alpha, A, B, beta, C) calls ?syr2k (for sizes that fit an int).
template<typename MA, typename MB>
constexpr bool mtl::detail::syr2k_uses_row_loop_v = row_major_contiguous_v<MA> && row_major_contiguous_v<MB>
 Whether the generic syr2k<void> forms C's lower triangle row by row over transposed copies of row-major A and B (#724).
template<typename Accumulator, typename S, typename MA, typename MB, typename MC>
constexpr bool mtl::detail::syr2k_uses_gemmt_v
 Whether syr2k<Accumulator>(alpha, A, B, beta, C) is two gemmt calls, C = alpha A B^T + beta C and then C += alpha B A^T, above detail::gemmt_block rows (#236): the MTL5_NATIVE_FAST_GEMM build without BLAS, where gemmt takes its blocked path over gemm_blocked.