54 template <BlasArrayOrConj<2> A, BlasArrayFor<A, 1> X, BlasArrayFor<A, 1> Y>
60 auto [m, n] = mat.shape();
61 EXPECTS(m == y.size());
62 EXPECTS(n == x.size());
65 EXPECTS(mat.indexmap().min_stride() == 1);
72 device::gemv(
get_op<A>, m, n, alpha, mat.data(),
get_ld(mat), x.data(), x.indexmap().strides()[0], beta, y.data(), y.indexmap().strides()[0]);
74 f77::gemv(
get_op<A>, m, n, alpha, mat.data(),
get_ld(mat), x.data(), x.indexmap().strides()[0], beta, y.data(), y.indexmap().strides()[0]);
Provides definitions and type traits involving the different memory address spaces supported by nda.
void swap(nda::basic_array_view< V1, R1, LP1, A1, AP1, OP1 > &a, nda::basic_array_view< V2, R2, LP2, A2, AP2, OP2 > &b)=delete
std::swap is deleted for nda::basic_array_view.
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.
MemoryArray decltype(auto) get_array(A &&a)
Get the underlying array of a conjugate lazy expression or return the array itself in case it is an n...
static constexpr char get_op
Variable template that determines the BLAS matrix operation tag ('N','T','C') based on the given bool...
int get_ld(A const &a)
Get the leading dimension of an nda::MemoryArray with rank 1 or 2 for BLAS/LAPACK calls.
static constexpr bool has_C_layout
Constexpr variable that is true if all given nda::Array types have nda::C_layout.
void gemv(get_value_t< A > alpha, A const &a, X const &x, get_value_t< A > beta, Y &&y)
Interface to the BLAS/cuBLAS gemv routine.
static constexpr bool have_device_compatible_addr_space
Constexpr variable that is true if all given types have an address space compatible with Device.
Macros used in the nda library.
Provides type traits for the nda library.