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

Public Types

using Type_t = typename BinaryReturn< T1, T2, OP >::Type_t
 

Static Public Member Functions

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

Detailed Description

template<class T1, class T2, class OP>
struct qmcplusplus::OTBinary< SymTensor< T1, 3 >, SymTensor< T2, 3 >, OP >

Definition at line 606 of file TensorOps.h.

Member Typedef Documentation

◆ Type_t

using Type_t = typename BinaryReturn<T1, T2, OP>::Type_t

Definition at line 608 of file TensorOps.h.

Member Function Documentation

◆ apply()

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

Definition at line 609 of file TensorOps.h.

610  {
611  return SymTensor<Type_t, 3>(op(lhs[0], rhs[0]), op(lhs[1], rhs[1]), op(lhs[2], rhs[2]), op(lhs[3], rhs[3]),
612  op(lhs[4], rhs[4]), op(lhs[5], rhs[5]));
613  }

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