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

Public Types

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

Static Public Member Functions

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

Detailed Description

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

Definition at line 423 of file TensorOps.h.

Member Typedef Documentation

◆ Type_t

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

Definition at line 425 of file TensorOps.h.

Member Function Documentation

◆ apply()

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

Definition at line 426 of file TensorOps.h.

427  {
428  return Tensor<Type_t, 2>(op(lhs[0], rhs), op(lhs[1], rhs), op(lhs[2], rhs), op(lhs[3], rhs));
429  }

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