48 requires(MemoryVector<X> or is_conj_array_expr<X>)
53 f77::scal(x.size(), alpha, x.data(), x.indexmap().strides()[0]);
55#if defined(NDA_HAVE_DEVICE)
56 device::scal(x.size(), alpha, x.data(), x.indexmap().strides()[0]);
Provides definitions and type traits involving the different memory address spaces supported by nda.
Provides a C++ interface for various BLAS routines.
Provides concepts for the nda library.
Provides GPU and non-GPU specific functionality.
std::decay_t< decltype(get_first_element(std::declval< A const >()))> get_value_t
Get the value type of an array/view or a scalar type.
void scal(get_value_t< X > alpha, X &&x)
Interface to the BLAS scal routine.
static constexpr bool on_host
Constexpr variable that is true if all given types have a Host address space.
void compile_error_no_gpu()
Trigger a compilation error in case GPU specific functionality is used without configuring the projec...
constexpr bool is_blas_lapack_v
Alias for nda::is_double_or_complex_v.
Provides type traits for the nda library.