QMCPACK
OTAssign< TinyVector< T1, 3 >, TinyVector< std::complex< T2 >, 3 >, OP > Struct Template Reference
+ Collaboration diagram for OTAssign< TinyVector< T1, 3 >, TinyVector< std::complex< T2 >, 3 >, OP >:

Static Public Member Functions

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

Detailed Description

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

Definition at line 117 of file TinyVectorOps.h.

Member Function Documentation

◆ apply()

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

Definition at line 119 of file TinyVectorOps.h.

References qmcplusplus::real().

120  {
121  op(lhs[0], rhs[0].real());
122  op(lhs[1], rhs[1].real());
123  op(lhs[2], rhs[2].real());
124  }
float real(const float &c)
real part of a scalar. Cannot be replaced by std::real due to AFQMC specific needs.

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