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

specialization for complex-real TinyVector More...

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

Public Types

using Type_t = T1
 

Static Public Member Functions

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

Detailed Description

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

specialization for complex-real TinyVector

Definition at line 370 of file TinyVectorOps.h.

Member Typedef Documentation

◆ Type_t

using Type_t = T1

Definition at line 372 of file TinyVectorOps.h.

Member Function Documentation

◆ apply()

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

Definition at line 373 of file TinyVectorOps.h.

374  {
375  return lhs[0].real() * rhs[0] + lhs[1].real() * rhs[1] + lhs[2].real() * rhs[2];
376  }

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