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

Public Types

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

Static Public Member Functions

static TinyVector< Type_t, 2 > apply (const TinyVector< T1, 2 > &lhs, const AntiSymTensor< T2, 2 > &rhs)
 

Detailed Description

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

Definition at line 448 of file TinyVectorTensorOps.h.

Member Typedef Documentation

◆ Type_t

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

Definition at line 450 of file TinyVectorTensorOps.h.

Member Function Documentation

◆ apply()

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

Definition at line 451 of file TinyVectorTensorOps.h.

452  {
453  return TinyVector<Type_t, 2>(lhs[0] * rhs(0, 0) + lhs[1] * rhs(1, 0), lhs[0] * rhs(0, 1) + lhs[1] * rhs(1, 1));
454  }

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