Grid 0.7.0
Tensor_outer.h File Reference

Go to the source code of this file.

Functions

 NAMESPACE_BEGIN (Grid)
template<class CC, IfComplex< CC > = 0>
accelerator_inline CC outerProduct (const CC &l, const CC &r)
template<class RR, IfReal< RR > = 0>
accelerator_inline RR outerProduct (const RR &l, const RR &r)
template<class l, class r, int N>
accelerator_inline auto outerProduct (const iVector< l, N > &lhs, const iVector< r, N > &rhs) -> iMatrix< decltype(outerProduct(lhs._internal[0], rhs._internal[0])), N >
template<class l, class r>
accelerator_inline auto outerProduct (const iScalar< l > &lhs, const iScalar< r > &rhs) -> iScalar< decltype(outerProduct(lhs._internal, rhs._internal))>
 NAMESPACE_END (Grid)

Function Documentation

◆ NAMESPACE_BEGIN()

NAMESPACE_BEGIN ( Grid )

◆ outerProduct() [1/4]

template<class CC, IfComplex< CC > = 0>
accelerator_inline CC outerProduct ( const CC & l,
const CC & r )

Definition at line 38 of file Tensor_outer.h.

References accelerator_inline, and conj.

Referenced by outerProduct(), and outerProduct().

◆ outerProduct() [2/4]

template<class RR, IfReal< RR > = 0>
accelerator_inline RR outerProduct ( const RR & l,
const RR & r )

Definition at line 43 of file Tensor_outer.h.

References accelerator_inline.

◆ outerProduct() [3/4]

template<class l, class r, int N>
accelerator_inline auto outerProduct ( const iVector< l, N > & lhs,
const iVector< r, N > & rhs ) -> iMatrix< decltype(outerProduct(lhs._internal[0], rhs._internal[0])), N >

Definition at line 49 of file Tensor_outer.h.

References outerProduct().

◆ outerProduct() [4/4]

template<class l, class r>
accelerator_inline auto outerProduct ( const iScalar< l > & lhs,
const iScalar< r > & rhs ) -> iScalar< decltype(outerProduct(lhs._internal, rhs._internal))>

Definition at line 62 of file Tensor_outer.h.

References iScalar< vtype >::_internal, and outerProduct().

◆ NAMESPACE_END()

NAMESPACE_END ( Grid )