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

Public Types

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

Static Public Member Functions

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

Detailed Description

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

Definition at line 161 of file TinyVectorOps.h.

Member Typedef Documentation

◆ Type_t

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

Definition at line 163 of file TinyVectorOps.h.

Member Function Documentation

◆ apply()

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

Definition at line 164 of file TinyVectorOps.h.

165  {
167  for (unsigned d = 0; d < D; ++d)
168  ret[d] = op(lhs[d], rhs[d]);
169  return ret;
170  }

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