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

Static Public Member Functions

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

Detailed Description

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

Definition at line 21 of file TensorOps.h.

Member Function Documentation

◆ apply()

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

Definition at line 23 of file TensorOps.h.

24  {
25  for (unsigned d = 0; d < D * D; ++d)
26  op(lhs[d], rhs[d]);
27  }

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