QMCPACK
OTAssign< SymTensor< T1, D >, SymTensor< T2, D >, OP > Struct Template Reference
+ Collaboration diagram for OTAssign< SymTensor< T1, D >, SymTensor< T2, D >, OP >:

Static Public Member Functions

static void apply (SymTensor< T1, D > &lhs, const SymTensor< T2, D > &rhs, OP op)
 

Detailed Description

template<class T1, class T2, class OP, unsigned D>
struct qmcplusplus::OTAssign< SymTensor< T1, D >, SymTensor< T2, D >, OP >

Definition at line 136 of file TensorOps.h.

Member Function Documentation

◆ apply()

static void apply ( SymTensor< T1, D > &  lhs,
const SymTensor< T2, D > &  rhs,
OP  op 
)
inlinestatic

Definition at line 138 of file TensorOps.h.

139  {
140  for (unsigned d = 0; d < D * (D + 1) / 2; ++d)
141  op(lhs[d], rhs[d]);
142  }

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