QMCPACK
OTDot< TinyVector< T1, 3 >, TinyVector< std::complex< T1 >, 3 > > Struct Template Reference

specialization for real-complex TinyVector More...

+ Collaboration diagram for OTDot< TinyVector< T1, 3 >, TinyVector< std::complex< T1 >, 3 > >:

Public Types

using Type_t = T1
 

Static Public Member Functions

static Type_t apply (const TinyVector< T1, 3 > &lhs, const TinyVector< std::complex< T1 >, 3 > &rhs)
 

Detailed Description

template<class T1>
struct qmcplusplus::OTDot< TinyVector< T1, 3 >, TinyVector< std::complex< T1 >, 3 > >

specialization for real-complex TinyVector

Definition at line 359 of file TinyVectorOps.h.

Member Typedef Documentation

◆ Type_t

using Type_t = T1

Definition at line 361 of file TinyVectorOps.h.

Member Function Documentation

◆ apply()

static Type_t apply ( const TinyVector< T1, 3 > &  lhs,
const TinyVector< std::complex< T1 >, 3 > &  rhs 
)
inlinestatic

Definition at line 362 of file TinyVectorOps.h.

363  {
364  return lhs[0] * rhs[0].real() + lhs[1] * rhs[1].real() + lhs[2] * rhs[2].real();
365  }

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