16#ifndef TLAPACK_BLAS_NRM2_HH
17#define TLAPACK_BLAS_NRM2_HH
32template <TLAPACK_VECTOR vector_t, disable_if_allow_optblas_t<vector_t> = 0>
45#ifdef TLAPACK_USE_LAPACKPP
52 auto x_ = legacy_vector(
x);
57 return ::blas::nrm2(n,
x_.ptr,
x_.inc);
#define TLAPACK_LEGACY_VECTOR
Macro for tlapack::concepts::LegacyVector compatible with C++17.
Definition concepts.hpp:954
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
auto nrm2(const vector_t &x)
Definition nrm2.hpp:33
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