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

Public Types

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

Static Public Member Functions

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

Detailed Description

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

Definition at line 258 of file TinyVectorOps.h.

Member Typedef Documentation

◆ Type_t

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

Definition at line 260 of file TinyVectorOps.h.

Member Function Documentation

◆ apply()

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

Definition at line 261 of file TinyVectorOps.h.

262  {
263  return TinyVector<Type_t, 2>(op(lhs, rhs[0]), op(lhs, rhs[1]));
264  }

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