#include <math_kernel_op.h>
|
void | operator() (const int dim, T *result, const T *vector, const Real constant) |
| result[i] = vector[i] * constant, where vector is complex number and constant is real number。 It is different from the scal_op, which is used to multiply a complex number by a complex number.
|
|
◆ Real
template<typename
T , typename Device >
◆ operator()()
template<typename
T , typename Device >
result[i] = vector[i] * constant, where vector is complex number and constant is real number。 It is different from the scal_op, which is used to multiply a complex number by a complex number.
Input Parameters
- Parameters
-
dim | : array size |
vector | : input array |
constant | : input constant |
Output Parameters
- Parameters
-
- Note
- Use mulitple instead of divide. It is faster.
The documentation for this struct was generated from the following file:
- /home/runner/work/abacus-develop/abacus-develop/source/source_base/kernels/math_kernel_op.h