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

Public Types

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

Static Public Member Functions

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

Detailed Description

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

Definition at line 308 of file TinyVectorOps.h.

Member Typedef Documentation

◆ Type_t

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

Definition at line 310 of file TinyVectorOps.h.

Member Function Documentation

◆ apply()

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

Definition at line 311 of file TinyVectorOps.h.

312  {
313  Type_t res = lhs[0] * rhs[0];
314  for (unsigned d = 1; d < D; ++d)
315  res += lhs[d] * rhs[d];
316  return res;
317  }
typename BinaryReturn< T1, T2, OpMultiply >::Type_t Type_t

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