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

Public Types

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

Static Public Member Functions

static Return_t apply (const TinyVector< T1, 2 > &a, const TinyVector< T2, 2 > &b)
 

Detailed Description

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

Definition at line 624 of file TinyVectorTensorOps.h.

Member Typedef Documentation

◆ Return_t

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

Definition at line 627 of file TinyVectorTensorOps.h.

◆ Type_t

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

Definition at line 626 of file TinyVectorTensorOps.h.

Member Function Documentation

◆ apply()

static Return_t apply ( const TinyVector< T1, 2 > &  a,
const TinyVector< T2, 2 > &  b 
)
inlinestatic

Definition at line 628 of file TinyVectorTensorOps.h.

629  {
630  return Return_t(a[0] * b[0], a[0] * b[1], a[1] * b[0], a[1] * b[1]);
631  }
Tensor< typename BinaryReturn< T1, T2, OpMultiply >::Type_t, 2 > Return_t

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