11#ifndef TLAPACK_BLAS_HEMV_HH
12#define TLAPACK_BLAS_HEMV_HH
66 const idx_t n = nrows(
A);
75 for (idx_t i = 0; i < n; ++i)
81 for (idx_t j = 0; j < n; ++j) {
84 for (idx_t i = 0; i < j; ++i) {
94 for (idx_t j = 0; j < n; ++j) {
97 for (idx_t i = j + 1; i < n; ++i) {
106#ifdef TLAPACK_USE_LAPACKPP
127 auto A_ = legacy_matrix(
A);
128 auto x_ = legacy_vector(
x);
129 auto y_ = legacy_vector(
y);
133 const auto& n =
A_.n;
138 -2,
"Infs and NaNs in A or x will not propagate to y on output");
142 "Infs and NaNs in y on input will not propagate to y on output");
144 return ::blas::hemv((::blas::Layout)L, (::blas::Uplo)
uplo, n,
alpha,
A_.ptr,
#define TLAPACK_SCALAR
Macro for tlapack::concepts::Scalar compatible with C++17.
Definition concepts.hpp:915
#define TLAPACK_LEGACY_VECTOR
Macro for tlapack::concepts::LegacyVector compatible with C++17.
Definition concepts.hpp:954
#define TLAPACK_LEGACY_MATRIX
Macro for tlapack::concepts::LegacyMatrix compatible with C++17.
Definition concepts.hpp:951
#define TLAPACK_VECTOR
Macro for tlapack::concepts::Vector compatible with C++17.
Definition concepts.hpp:906
#define TLAPACK_MATRIX
Macro for tlapack::concepts::Matrix compatible with C++17.
Definition concepts.hpp:896
void hemv(Uplo uplo, const alpha_t &alpha, const matrixA_t &A, const vectorX_t &x, const beta_t &beta, vectorY_t &y)
Hermitian matrix-vector multiply:
Definition hemv.hpp:53
#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::Uplo.
Sort the numbers in D in increasing order (if ID = 'I') or in decreasing order (if ID = 'D' ).
Definition arrayTraits.hpp:15
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
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
Uplo
Definition types.hpp:50
@ 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