12#ifndef TLAPACK_LARFG_HH
13#define TLAPACK_LARFG_HH
72template <TLAPACK_STOREV storage_t, TLAPACK_VECTOR vector_t>
125 for (idx_t j = 0; j <
knt; ++j)
194 enable_if_t<std::is_convertible_v<direction_t, Direction>,
int> = 0>
205 direction != Direction::Forward);
207 const idx_t
alpha_idx = (direction == Direction::Forward) ? 0 : size(
v) - 1;
210 slice(
v, (direction == Direction::Forward) ?
range(1, size(
v))
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
constexpr real_type< T > imag(const T &x) noexcept
Extends std::imag() to real datatypes.
Definition utils.hpp:86
#define TLAPACK_STOREV
Macro for tlapack::concepts::StoreV compatible with C++17.
Definition concepts.hpp:936
#define TLAPACK_DIRECTION
Macro for tlapack::concepts::Direction compatible with C++17.
Definition concepts.hpp:930
#define TLAPACK_VECTOR
Macro for tlapack::concepts::Vector compatible with C++17.
Definition concepts.hpp:906
real_type< TX, TY > lapy2(const TX &x, const TY &y)
Finds , taking care not to cause unnecessary overflow.
Definition lapy2.hpp:32
void rscl(const alpha_t &alpha, vector_t &x)
Scale vector by the reciprocal of a constant, .
Definition rscl.hpp:22
void larfg(storage_t storeMode, type_t< vector_t > &alpha, vector_t &x, type_t< vector_t > &tau)
Generates a elementary Householder reflection.
Definition larfg.hpp:73
real_type< TX, TY, TZ > lapy3(const TX &x, const TY &y, const TZ &z)
Finds , taking care not to cause unnecessary overflow or unnecessary underflow.
Definition lapy3.hpp:38
void scal(const alpha_t &alpha, vector_t &x)
Scale vector by constant, .
Definition scal.hpp:30
auto nrm2(const vector_t &x)
Definition nrm2.hpp:33
#define tlapack_check(cond)
Throw an error if cond is false.
Definition exceptionHandling.hpp:98
#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