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

Public Types

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

Static Public Member Functions

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

Detailed Description

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

Definition at line 332 of file TensorOps.h.

Member Typedef Documentation

◆ Type_t

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

Definition at line 334 of file TensorOps.h.

Member Function Documentation

◆ apply()

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

Definition at line 335 of file TensorOps.h.

336  {
337  Tensor<Type_t, D> ret;
338  for (unsigned d = 0; d < D * D; ++d)
339  ret[d] = op(lhs[d], rhs[d]);
340  return ret;
341  }

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