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

Public Types

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

Static Public Member Functions

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

Detailed Description

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

Definition at line 348 of file TinyVectorOps.h.

Member Typedef Documentation

◆ Type_t

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

Definition at line 350 of file TinyVectorOps.h.

Member Function Documentation

◆ apply()

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

Definition at line 351 of file TinyVectorOps.h.

352  {
353  return lhs[0] * rhs[0] + lhs[1] * rhs[1] + lhs[2] * rhs[2] + lhs[3] * rhs[3];
354  }

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