ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
ModuleBase::vector_mul_vector_op< T, Device > Struct Template Reference

#include <math_kernel_op.h>

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

Public Types

using Real = typename GetTypeReal< T >::type
 

Public Member Functions

void operator() (const int &dim, T *result, const T *vector1, const Real *vector2, const bool &add=false)
 result[i] = vector1[i](complex) * vector2[i](not complex)
 

Member Typedef Documentation

◆ Real

template<typename T , typename Device >
using ModuleBase::vector_mul_vector_op< T, Device >::Real = typename GetTypeReal<T>::type

Member Function Documentation

◆ operator()()

template<typename T , typename Device >
void ModuleBase::vector_mul_vector_op< T, Device >::operator() ( const int &  dim,
T result,
const T vector1,
const Real vector2,
const bool &  add = false 
)

result[i] = vector1[i](complex) * vector2[i](not complex)

Input Parameters

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

Parameters
result: output array

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