v0.8.3
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FTensor::Dg_times_Dg_2< A, B, T, U, Dim01, Dim23, Dim2, i, j, k, l, m > Class Template Reference

#include <src/ftensor/src/FTensor/Dg/Dg_times_Dg.hpp>

Collaboration diagram for FTensor::Dg_times_Dg_2< A, B, T, U, Dim01, Dim23, Dim2, i, j, k, l, m >:
[legend]

Public Member Functions

 Dg_times_Dg_2 (const Dg_Expr< A, T, Dim01, Dim2, i, j, k > &a, const Dg_Expr< B, U, Dim23, Dim2, l, m, k > &b)
 
promote< T, U >::V operator() (const int N1, const int N2, const int N3, const int N4) const
 

Private Member Functions

template<int Current_Dim0>
promote< T, U >::V eval (const int N1, const int N2, const int N3, const int N4, const Number< Current_Dim0 > &) const
 
promote< T, U >::V eval (const int N1, const int N2, const int N3, const int N4, const Number< 1 > &) const
 

Private Attributes

Dg_Expr< A, T, Dim01, Dim2, i, j, k > iterA
 
Dg_Expr< B, U, Dim23, Dim2, l, m, k > iterB
 

Detailed Description

template<class A, class B, class T, class U, int Dim01, int Dim23, int Dim2, char i, char j, char k, char l, char m>
class FTensor::Dg_times_Dg_2< A, B, T, U, Dim01, Dim23, Dim2, i, j, k, l, m >

Definition at line 152 of file Dg_times_Dg.hpp.

Constructor & Destructor Documentation

◆ Dg_times_Dg_2()

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim2, char i, char j, char k, char l, char m>
FTensor::Dg_times_Dg_2< A, B, T, U, Dim01, Dim23, Dim2, i, j, k, l, m >::Dg_times_Dg_2 ( const Dg_Expr< A, T, Dim01, Dim2, i, j, k > &  a,
const Dg_Expr< B, U, Dim23, Dim2, l, m, k > &  b 
)

Definition at line 172 of file Dg_times_Dg.hpp.

174  : iterA(a), iterB(b)
175  {}
Dg_Expr< B, U, Dim23, Dim2, l, m, k > iterB
Dg_Expr< A, T, Dim01, Dim2, i, j, k > iterA

Member Function Documentation

◆ eval() [1/2]

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim2, char i, char j, char k, char l, char m>
template<int Current_Dim0>
promote<T, U>::V FTensor::Dg_times_Dg_2< A, B, T, U, Dim01, Dim23, Dim2, i, j, k, l, m >::eval ( const int  N1,
const int  N2,
const int  N3,
const int  N4,
const Number< Current_Dim0 > &   
) const
private

Definition at line 159 of file Dg_times_Dg.hpp.

161  {
162  return iterA(N1, N2, Current_Dim0 - 1) * iterB(N3, N4, Current_Dim0 - 1)
163  + eval(N1, N2, N3, N4, Number<Current_Dim0 - 1>());
164  }
Dg_Expr< B, U, Dim23, Dim2, l, m, k > iterB
promote< T, U >::V eval(const int N1, const int N2, const int N3, const int N4, const Number< Current_Dim0 > &) const
Dg_Expr< A, T, Dim01, Dim2, i, j, k > iterA

◆ eval() [2/2]

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim2, char i, char j, char k, char l, char m>
promote<T, U>::V FTensor::Dg_times_Dg_2< A, B, T, U, Dim01, Dim23, Dim2, i, j, k, l, m >::eval ( const int  N1,
const int  N2,
const int  N3,
const int  N4,
const Number< 1 > &   
) const
private

Definition at line 165 of file Dg_times_Dg.hpp.

167  {
168  return iterA(N1, N2, 0) * iterB(N3, N4, 0);
169  }
Dg_Expr< B, U, Dim23, Dim2, l, m, k > iterB
Dg_Expr< A, T, Dim01, Dim2, i, j, k > iterA

◆ operator()()

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim2, char i, char j, char k, char l, char m>
promote<T, U>::V FTensor::Dg_times_Dg_2< A, B, T, U, Dim01, Dim23, Dim2, i, j, k, l, m >::operator() ( const int  N1,
const int  N2,
const int  N3,
const int  N4 
) const

Definition at line 177 of file Dg_times_Dg.hpp.

178  {
179  return eval(N1, N2, N3, N4, Number<Dim2>());
180  }
promote< T, U >::V eval(const int N1, const int N2, const int N3, const int N4, const Number< Current_Dim0 > &) const

Member Data Documentation

◆ iterA

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim2, char i, char j, char k, char l, char m>
Dg_Expr<A, T, Dim01, Dim2, i, j, k> FTensor::Dg_times_Dg_2< A, B, T, U, Dim01, Dim23, Dim2, i, j, k, l, m >::iterA
private

Definition at line 154 of file Dg_times_Dg.hpp.

◆ iterB

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim2, char i, char j, char k, char l, char m>
Dg_Expr<B, U, Dim23, Dim2, l, m, k> FTensor::Dg_times_Dg_2< A, B, T, U, Dim01, Dim23, Dim2, i, j, k, l, m >::iterB
private

Definition at line 155 of file Dg_times_Dg.hpp.


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