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

Public Types

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

Static Public Member Functions

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

Detailed Description

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

Definition at line 472 of file TensorOps.h.

Member Typedef Documentation

◆ Type_t

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

Definition at line 474 of file TensorOps.h.

Member Function Documentation

◆ apply()

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

Definition at line 475 of file TensorOps.h.

476  {
477  return Tensor<Type_t, 3>(op(lhs, rhs[0]), op(lhs, rhs[1]), op(lhs, rhs[2]), op(lhs, rhs[3]), op(lhs, rhs[4]),
478  op(lhs, rhs[5]), op(lhs, rhs[6]), op(lhs, rhs[7]), op(lhs, rhs[8]));
479  }

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