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

#include <math_kernel_op.h>

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

Public Types

using Real = typename GetTypeReal<T>::type

Public Member Functions

Real operator() (const int &dim, const T *psi_L, const T *psi_R, const bool reduce=true)
 dot_real_op computes the dot product of the given complex arrays(treated as float arrays). And there's may have MPI communications while enabling planewave parallization strategy.

Member Typedef Documentation

◆ Real

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

Member Function Documentation

◆ operator()()

template<typename T, typename Device>
Real ModuleBase::dot_real_op< T, Device >::operator() ( const int & dim,
const T * psi_L,
const T * psi_R,
const bool reduce = true )

dot_real_op computes the dot product of the given complex arrays(treated as float arrays). And there's may have MPI communications while enabling planewave parallization strategy.

Input Parameters

Parameters
dim: array size
psi_L: input array A
psi_R: input array B
reduce: flag to control whether to perform the MPI communications
Returns
FPTYPE : dot product result

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