11#ifndef TLAPACK_BLAS_SCAL_HH
12#define TLAPACK_BLAS_SCAL_HH
28 class T = type_t<vector_t>,
29 disable_if_allow_optblas_t<pair<alpha_t, T>, pair<vector_t, T> > = 0>
35 const idx_t n = size(
x);
37 for (idx_t i = 0; i < n; ++i)
41#ifdef TLAPACK_USE_LAPACKPP
45 class T = type_t<vector_t>,
46 enable_if_allow_optblas_t<pair<alpha_t, T>, pair<vector_t, T> > = 0>
47void scal(
const alpha_t alpha, vector_t& x)
50 auto x_ = legacy_vector(x);
55 return ::blas::scal(n, alpha, x_.ptr, x_.inc);
#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
void scal(const alpha_t &alpha, vector_t &x)
Scale vector by constant, .
Definition scal.hpp:30
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