ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
ModuleBase::gemv_op< T, Device > Struct Template Reference

#include <math_kernel_op.h>

Collaboration diagram for ModuleBase::gemv_op< T, Device >:

Public Member Functions

void operator() (const char &trans, const int &m, const int &n, const T *alpha, const T *A, const int &lda, const T *X, const int &incx, const T *beta, T *Y, const int &incy)
 y = alpha * op(A) * x + beta * y

Member Function Documentation

◆ operator()()

template<typename T, typename Device>
void ModuleBase::gemv_op< T, Device >::operator() ( const char & trans,
const int & m,
const int & n,
const T * alpha,
const T * A,
const int & lda,
const T * X,
const int & incx,
const T * beta,
T * Y,
const int & incy )

y = alpha * op(A) * x + beta * y

Input Parameters

Parameters
trans: whether to transpose A
m: first dimension of matrix
n: second dimension of matrix
alpha: input constant alpha
A: input matrix A
lda: leading dimention of A
X: input array X
incx: computing strip of X
beta: input constant beta
Y: input array Y
incy: computing strip of Y

Output Parameters

Parameters
Y: output array Y

The documentation for this struct was generated from the following file: