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

Public Types

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

Static Public Member Functions

static TinyVector< Type_t, 4 > apply (const Tensor< T1, 4 > &lhs, const TinyVector< T2, 4 > &rhs)
 

Detailed Description

template<class T1, class T2>
struct qmcplusplus::OTDot< Tensor< T1, 4 >, TinyVector< T2, 4 > >

Definition at line 81 of file TinyVectorTensorOps.h.

Member Typedef Documentation

◆ Type_t

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

Definition at line 83 of file TinyVectorTensorOps.h.

Member Function Documentation

◆ apply()

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

Definition at line 84 of file TinyVectorTensorOps.h.

85  {
86  return TinyVector<Type_t, 4>(lhs[0] * rhs[0] + lhs[1] * rhs[1] + lhs[2] * rhs[2] + lhs[3] * rhs[3],
87  lhs[4] * rhs[0] + lhs[5] * rhs[1] + lhs[6] * rhs[2] + lhs[7] * rhs[3],
88  lhs[8] * rhs[0] + lhs[9] * rhs[1] + lhs[10] * rhs[2] + lhs[11] * rhs[3],
89  lhs[12] * rhs[0] + lhs[13] * rhs[1] + lhs[14] * rhs[2] + lhs[15] * rhs[3]);
90  }

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