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

#include <math_kernel_op.h>

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

Public Member Functions

void operator() (const int &N, const T *alpha, const T *X, const int &incX, T *Y, const int &incY)
 Y = alpha * X + Y.

Member Function Documentation

◆ operator()()

template<typename T, typename Device>
void ModuleBase::axpy_op< T, Device >::operator() ( const int & N,
const T * alpha,
const T * X,
const int & incX,
T * Y,
const int & incY )

Y = alpha * X + Y.

Input Parameters

Parameters
N: array size
alpha: input constant alpha
X: input array X
incX: computing strip of X
Y: computing strip of Y
incY: computing strip of Y

Output Parameters

Parameters
Y: output array Y

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