11#ifndef TLAPACK_BLAS_HER2K_HH
12#define TLAPACK_BLAS_HER2K_HH
101 for (idx_t j = 0; j < n; ++j) {
102 for (idx_t i = 0; i < j; ++i)
106 for (idx_t
l = 0;
l <
k; ++
l) {
112 for (idx_t i = 0; i < j; ++i)
121 for (idx_t j = 0; j < n; ++j) {
123 for (idx_t i = j + 1; i < n; ++i)
126 for (idx_t
l = 0;
l <
k; ++
l) {
134 for (idx_t i = j + 1; i < n; ++i)
146 for (idx_t j = 0; j < n; ++j) {
147 for (idx_t i = 0; i <= j; ++i) {
150 for (idx_t
l = 0;
l <
k; ++
l) {
166 for (idx_t j = 0; j < n; ++j) {
167 for (idx_t i = j; i < n; ++i) {
170 for (idx_t
l = 0;
l <
k; ++
l) {
188 for (idx_t j = 0; j < n; ++j) {
189 for (idx_t i = j + 1; i < n; ++i)
195#ifdef TLAPACK_USE_LAPACKPP
234 auto A_ = legacy_matrix(
A);
235 auto B_ = legacy_matrix(
B);
236 auto C_ = legacy_matrix(
C);
240 const auto& n =
C_.n;
246 -3,
"Infs and NaNs in A or B will not propagate to C on output");
250 "Infs and NaNs in C on input will not propagate to C on output");
252 return ::blas::her2k((::blas::Layout)L, (::blas::Uplo)
uplo,
#define TLAPACK_SCALAR
Macro for tlapack::concepts::Scalar compatible with C++17.
Definition concepts.hpp:915
#define TLAPACK_LEGACY_MATRIX
Macro for tlapack::concepts::LegacyMatrix compatible with C++17.
Definition concepts.hpp:951
#define TLAPACK_MATRIX
Macro for tlapack::concepts::Matrix compatible with C++17.
Definition concepts.hpp:896
#define TLAPACK_REAL
Macro for tlapack::concepts::Real compatible with C++17.
Definition concepts.hpp:918
void her2k(Uplo uplo, Op trans, const alpha_t &alpha, const matrixA_t &A, const matrixB_t &B, const beta_t &beta, matrixC_t &C)
Hermitian rank-k update:
Definition her2k.hpp:72
#define tlapack_check_false(cond)
Throw an error if cond is true.
Definition exceptionHandling.hpp:113
#define tlapack_warning(info, detailedInfo)
Warning handler.
Definition exceptionHandling.hpp:156
Concept for types that represent tlapack::Op.
Concept for types that represent tlapack::Uplo.
Sort the numbers in D in increasing order (if ID = 'I') or in decreasing order (if ID = 'D' ).
Definition arrayTraits.hpp:15
enable_if_t<(!allow_optblas< T1, Ts... >), int > disable_if_allow_optblas_t
Disable if the list of types allows optimized BLAS library.
Definition utils.hpp:303
typename traits::real_type_traits< Types..., int >::type real_type
The common real type of the list of types.
Definition scalar_type_traits.hpp:113
enable_if_t<(allow_optblas< T1, Ts... >), int > enable_if_allow_optblas_t
Enable if the list of types allows optimized BLAS library.
Definition utils.hpp:298
constexpr real_type< T > real(const T &x) noexcept
Extends std::real() to real datatypes.
Definition utils.hpp:71
constexpr T conj(const T &x) noexcept
Extends std::conj() to real datatypes.
Definition utils.hpp:100
Op
Definition types.hpp:227
@ ConjTrans
conjugate transpose
constexpr real_type< T > imag(const T &x) noexcept
Extends std::imag() to real datatypes.
Definition utils.hpp:86
Uplo
Definition types.hpp:50
@ General
0 <= i <= m, 0 <= j <= n.
@ Upper
0 <= i <= j, 0 <= j <= n.
@ Lower
0 <= i <= m, 0 <= j <= i.
Layout
Definition types.hpp:29
Strong zero type.
Definition StrongZero.hpp:43