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

Public Types

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

Static Public Member Functions

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

Detailed Description

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

Definition at line 139 of file TinyVectorTensorOps.h.

Member Typedef Documentation

◆ Type_t

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

Definition at line 141 of file TinyVectorTensorOps.h.

Member Function Documentation

◆ apply()

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

Definition at line 142 of file TinyVectorTensorOps.h.

143  {
144  return TinyVector<Type_t, 3>(lhs[0] * rhs[0] + lhs[1] * rhs[3] + lhs[2] * rhs[6],
145  lhs[0] * rhs[1] + lhs[1] * rhs[4] + lhs[2] * rhs[7],
146  lhs[0] * rhs[2] + lhs[1] * rhs[5] + lhs[2] * rhs[8]);
147  }

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