|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
#include <math_kernel_op.h>
Public Member Functions | |
| void | operator() (const int &dim, T *result, const T *vector1, const Operand *vector2, const bool &add) |
| result[i] = vector1[i] * vector2[i] | |
| void ModuleBase::vector_mul_vector_op< T, Device, Operand >::operator() | ( | const int & | dim, |
| T * | result, | ||
| const T * | vector1, | ||
| const Operand * | vector2, | ||
| const bool & | add ) |
result[i] = vector1[i] * vector2[i]
Input Parameters
| dim | : array size |
| vector1 | : input array A |
| vector2 | : input array B |
| add | : flag to control whether to add the result to the output array |
Output Parameters
| result | : output array |