11#ifndef TLAPACK_BLAS_COPY_HH
12#define TLAPACK_BLAS_COPY_HH
29 class T = type_t<vectorY_t>,
30 disable_if_allow_optblas_t<pair<vectorX_t, T>, pair<vectorY_t, T> > = 0>
36 const idx_t n = size(
x);
41 for (idx_t i = 0; i < n; ++i)
45#ifdef TLAPACK_USE_LAPACKPP
50 class T = type_t<vectorY_t>,
51 enable_if_allow_optblas_t<pair<vectorX_t, T>, pair<vectorY_t, T> > = 0>
52void copy(
const vectorX_t& x, vectorY_t& y)
55 auto x_ = legacy_vector(x);
56 auto y_ = legacy_vector(y);
61 return ::blas::copy(n, x_.ptr, x_.inc, y_.ptr, y_.inc);
#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 copy(const vectorX_t &x, vectorY_t &y)
Copy vector, .
Definition copy.hpp:31
#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