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

Public Types

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

Static Public Member Functions

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

Detailed Description

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

Definition at line 1072 of file TensorOps.h.

Member Typedef Documentation

◆ Type_t

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

Definition at line 1074 of file TensorOps.h.

Member Function Documentation

◆ apply()

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

Definition at line 1075 of file TensorOps.h.

1076  {
1077  return Tensor<Type_t, 2>(lhs(0, 0) * rhs(0, 0) + lhs(0, 1) * rhs(1, 0),
1078  lhs(0, 0) * rhs(0, 1) + lhs(0, 1) * rhs(1, 1),
1079  lhs(1, 0) * rhs(0, 0) + lhs(1, 1) * rhs(1, 0),
1080  lhs(1, 0) * rhs(0, 1) + lhs(1, 1) * rhs(1, 1));
1081  }

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