11#ifndef TLAPACK_BLAS_ROT_HH
12#define TLAPACK_BLAS_ROT_HH
39 class T = type_t<vectorX_t>,
40 disable_if_allow_optblas_t<pair<vectorX_t, T>,
42 pair<c_type, real_type<T> >,
43 pair<s_type, real_type<T> > > = 0>
51 const idx_t n = size(
x);
59 for (idx_t i = 0; i < n; ++i) {
66#ifdef TLAPACK_USE_LAPACKPP
72 class T = type_t<vectorX_t>,
73 enable_if_allow_optblas_t<pair<vectorX_t, T>,
75 pair<c_type, real_type<T> >,
76 pair<s_type, real_type<T> > > = 0>
77void rot(vectorX_t& x, vectorY_t& y,
const c_type c,
const s_type s)
80 auto x_ = legacy_vector(x);
81 auto y_ = legacy_vector(y);
86 return ::blas::rot(n, x_.ptr, x_.inc, y_.ptr, y_.inc, c, s);
constexpr T conj(const T &x) noexcept
Extends std::conj() to real datatypes.
Definition utils.hpp:100
#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_VECTOR
Macro for tlapack::concepts::Vector compatible with C++17.
Definition concepts.hpp:906
#define TLAPACK_REAL
Macro for tlapack::concepts::Real compatible with C++17.
Definition concepts.hpp:918
void rot(vectorX_t &x, vectorY_t &y, const c_type &c, const s_type &s)
Apply plane rotation:
Definition rot.hpp:44
#define tlapack_check_false(cond)
Throw an error if cond is true.
Definition exceptionHandling.hpp:113
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