12#include <guanaqo/trace.hpp>
17template <
class T,
class Abi, micro_kernels::potrf::KernelConfig Conf,
StorageOrder OA,
27 const index_t M = D.rows(), N = D.cols();
30 if (M == 0 || N == 0) [[unlikely]]
43template <MatrixStructure SC, simdifiable VA, simdifiable VC, simdifiable VD>
51template <MatrixStructure SC, simdifiable VA, simdifiable VD>
58template <MatrixStructure SC, simdifiable VA, simdifiable VC, simdifiable VD>
66template <MatrixStructure SC, simdifiable VA, simdifiable VD>
73template <MatrixStructure SC, simdifiable VC, simdifiable VD>
76 decltype(
simdify(C.
value).as_const()) null{{.data =
nullptr, .rows = 0, .cols = 0}};
82template <MatrixStructure SD, simdifiable VD>
84 decltype(
simdify(D.
value).as_const()) null{{.data =
nullptr, .rows = 0, .cols = 0}};
constexpr FlopCount syrk_potrf(index_t m, index_t n, index_t k)
Fused symmetric rank-k update and Cholesky factorization of an m×n matrix with m≥n.
void syrk_add_potrf(VA &&A, Structured< VC, SC > C, Structured< VD, SC > D, simdified_value_t< VA > regularization=0)
D = chol(C + AAᵀ) with C symmetric, D triangular.
void syrk_sub_potrf(VA &&A, Structured< VC, SC > C, Structured< VD, SC > D, simdified_value_t< VA > regularization=0)
D = chol(C - AAᵀ) with C symmetric, D triangular.
void potrf(Structured< VC, SC > C, Structured< VD, SC > D, simdified_value_t< VC > regularization=0)
D = chol(C) with C symmetric, D triangular.
#define GUANAQO_TRACE_LINALG(name, gflops)
void potrf(view< const T, Abi, OA > A, view< const T, Abi, OCD > C, view< T, Abi, OCD > D, T regularization)
void potrf_copy_register(view< const T, Abi, OA > A, view< const T, Abi, OCD > C, view< T, Abi, OCD > D, T regularization) noexcept
typename detail::simdified_value< V >::type simdified_value_t
typename detail::simdified_abi< V >::type simdified_abi_t
constexpr bool simdify_compatible
constexpr auto simdify(simdifiable auto &&a) -> simdified_view_t< decltype(a)>
simd_view_types< std::remove_const_t< T >, Abi >::template view< T, Order > view
Aligned allocation for matrix storage.
Light-weight wrapper class used for overload resolution of triangular and symmetric matrices.