QMCPACK
OTBinary< TinyMatrix< T1, D1, D2 >, T2, OP > Struct Template Reference
+ Collaboration diagram for OTBinary< TinyMatrix< T1, D1, D2 >, T2, OP >:

Public Types

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

Static Public Member Functions

static TinyMatrix< Type_t, D1, D2 > apply (const TinyMatrix< T1, D1, D2 > &lhs, const T2 &rhs, OP op)
 

Detailed Description

template<class T1, class T2, class OP, unsigned D1, unsigned D2>
struct qmcplusplus::OTBinary< TinyMatrix< T1, D1, D2 >, T2, OP >

Definition at line 304 of file TinyMatrixOps.h.

Member Typedef Documentation

◆ Type_t

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

Definition at line 306 of file TinyMatrixOps.h.

Member Function Documentation

◆ apply()

static TinyMatrix<Type_t, D1, D2> apply ( const TinyMatrix< T1, D1, D2 > &  lhs,
const T2 &  rhs,
OP  op 
)
inlinestatic

Definition at line 307 of file TinyMatrixOps.h.

308  {
310  for (unsigned d = 0; d < D1 * D2; ++d)
311  ret[d] = op(lhs[d], rhs);
312  return ret;
313  }

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