v0.8.21
FTensor::Ddg_or_Ddg< A, B, T, U, Dim, i, j, k, l > Class Template Reference

#include <src/ftensor/src/FTensor/Ddg/Ddg_or_Ddg.hpp>

Collaboration diagram for FTensor::Ddg_or_Ddg< A, B, T, U, Dim, i, j, k, l >:
[legend]

## Public Member Functions

promote< T, U >::V operator() (const int N1, const int N2, const int N3, const int N4) const

Ddg_or_Ddg (const Ddg_Expr< A, T, Dim, Dim, i, j, k, l > &a, const Ddg_Expr< B, U, Dim, Dim, i, l, k, j > &b)

## Private Attributes

Ddg_Expr< A, T, Dim, Dim, i, j, k, l > iterA

Ddg_Expr< B, U, Dim, Dim, i, l, k, j > iterB

## Detailed Description

### template<class A, class B, class T, class U, int Dim, char i, char j, char k, char l> class FTensor::Ddg_or_Ddg< A, B, T, U, Dim, i, j, k, l >

Definition at line 12 of file Ddg_or_Ddg.hpp.

## ◆ Ddg_or_Ddg()

template<class A , class B , class T , class U , int Dim, char i, char j, char k, char l>
 FTensor::Ddg_or_Ddg< A, B, T, U, Dim, i, j, k, l >::Ddg_or_Ddg ( const Ddg_Expr< A, T, Dim, Dim, i, j, k, l > & a, const Ddg_Expr< B, U, Dim, Dim, i, l, k, j > & b )

Definition at line 23 of file Ddg_or_Ddg.hpp.

25  : iterA(a), iterB(b)
26  {}
Ddg_Expr< A, T, Dim, Dim, i, j, k, l > iterA
Definition: Ddg_or_Ddg.hpp:14
Ddg_Expr< B, U, Dim, Dim, i, l, k, j > iterB
Definition: Ddg_or_Ddg.hpp:15

## ◆ operator()()

template<class A , class B , class T , class U , int Dim, char i, char j, char k, char l>
 promote::V FTensor::Ddg_or_Ddg< A, B, T, U, Dim, i, j, k, l >::operator() ( const int N1, const int N2, const int N3, const int N4 ) const

Definition at line 19 of file Ddg_or_Ddg.hpp.

20  {
21  return iterA(N1, N3, N2, N4) + iterB(N1, N4, N2, N3);
22  }
Ddg_Expr< A, T, Dim, Dim, i, j, k, l > iterA
Definition: Ddg_or_Ddg.hpp:14
Ddg_Expr< B, U, Dim, Dim, i, l, k, j > iterB
Definition: Ddg_or_Ddg.hpp:15

## ◆ iterA

template<class A , class B , class T , class U , int Dim, char i, char j, char k, char l>
 Ddg_Expr FTensor::Ddg_or_Ddg< A, B, T, U, Dim, i, j, k, l >::iterA
private

Definition at line 14 of file Ddg_or_Ddg.hpp.

## ◆ iterB

template<class A , class B , class T , class U , int Dim, char i, char j, char k, char l>
 Ddg_Expr FTensor::Ddg_or_Ddg< A, B, T, U, Dim, i, j, k, l >::iterB
private

Definition at line 15 of file Ddg_or_Ddg.hpp.

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