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

Variables

template<typename Accumulator, typename MA, typename MC>
constexpr bool mtl::detail::syrk_dispatches_blas_v
 Whether syrk<Accumulator>(alpha, A, beta, C) calls ?syrk (for sizes that fit an int).
template<typename MA>
constexpr bool mtl::detail::syrk_uses_row_loop_v = row_major_contiguous_v<MA>
 Whether the generic syrk<void> forms C's lower triangle row by row over a transposed copy of a row-major A (#724).
template<typename Accumulator, typename S, typename MA, typename MC>
constexpr bool mtl::detail::syrk_uses_gemmt_v
 Whether syrk<Accumulator>(alpha, A, beta, C) is gemmt(alpha, A, trans(A), beta, C) above detail::gemmt_block rows (#236): the MTL5_NATIVE_FAST_GEMM build without BLAS, where gemmt takes its blocked path over gemm_blocked.