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

Public Types

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

Static Public Member Functions

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

Detailed Description

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

Definition at line 570 of file TensorOps.h.

Member Typedef Documentation

◆ Type_t

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

Definition at line 572 of file TensorOps.h.

Member Function Documentation

◆ apply()

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

Definition at line 573 of file TensorOps.h.

574  {
575  return SymTensor<Type_t, 2>(op(lhs[0], rhs[0]), op(lhs[1], rhs[1]), op(lhs[2], rhs[2]));
576  }

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