15#ifndef TLAPACK_LASSQ_HH
16#define TLAPACK_LASSQ_HH
48template <
class abs_f, TLAPACK_VECTOR vector_t>
58 const idx_t n = size(
x);
92 for (idx_t i = 0; i < n; ++i) {
191template <TLAPACK_VECTOR vector_t>
199 [](
const T&
x) {
return abs(
x); });
void lassq(const vector_t &x, real_type< type_t< vector_t > > &scale, real_type< type_t< vector_t > > &sumsq, abs_f absF)
Updates a sum of squares represented in scaled form.
Definition lassq.hpp:49
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 bool isnan(const T &x) noexcept
Extends std::isnan() to complex numbers.
Definition utils.hpp:125