QMCPACK
OTBinary< Tensor< T1, D >, SymTensor< T2, D >, OP > Struct Template Reference
+ Collaboration diagram for OTBinary< Tensor< T1, D >, SymTensor< 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 SymTensor< T2, D > &rhs, OP op)
 

Detailed Description

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

Definition at line 665 of file TensorOps.h.

Member Typedef Documentation

◆ Type_t

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

Definition at line 667 of file TensorOps.h.

Member Function Documentation

◆ apply()

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

Definition at line 668 of file TensorOps.h.

669  {
670  Tensor<Type_t, D> ret;
671  for (unsigned i = 0; i < D; i++)
672  for (unsigned j = 0; j < D; j++)
673  ret(i, j) = op(lhs(i, j), rhs(i, j));
674  return ret;
675  }

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