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

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

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

Public Member Functions

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

Private Member Functions

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

Private Attributes

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

Detailed Description

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

Definition at line 12 of file Dg_times_Dg.hpp.

Constructor & Destructor Documentation

◆ Dg_times_Dg_12_01()

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

Definition at line 42 of file Dg_times_Dg.hpp.

44  : iterA(a), iterB(b)
45  {}
Dg_Expr< B, U, Dim01, Dim2, j, k, l > iterB
Definition: Dg_times_Dg.hpp:15
Dg_Expr< A, T, Dim01, Dim01, i, j, k > iterA
Definition: Dg_times_Dg.hpp:14

Member Function Documentation

◆ eval() [1/3]

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

Definition at line 19 of file Dg_times_Dg.hpp.

21  {
22  return iterA(N1, Current_Dim0 - 1, Current_Dim1 - 1)
23  * iterB(Current_Dim0 - 1, Current_Dim1 - 1, N2)
24  + eval(N1, N2, Number<Current_Dim0 - 1>(),
25  Number<Current_Dim1>());
26  }
Dg_Expr< B, U, Dim01, Dim2, j, k, l > iterB
Definition: Dg_times_Dg.hpp:15
Dg_Expr< A, T, Dim01, Dim01, i, j, k > iterA
Definition: Dg_times_Dg.hpp:14
promote< T, U >::V eval(const int N1, const int N2, const Number< Current_Dim0 > &, const Number< Current_Dim1 > &) const
Definition: Dg_times_Dg.hpp:19

◆ eval() [2/3]

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

Definition at line 29 of file Dg_times_Dg.hpp.

31  {
32  return iterA(N1, 0, Current_Dim1 - 1) * iterB(0, Current_Dim1 - 1, N2)
33  + eval(N1, N2, Number<Dim01>(), Number<Current_Dim1 - 1>());
34  }
Dg_Expr< B, U, Dim01, Dim2, j, k, l > iterB
Definition: Dg_times_Dg.hpp:15
Dg_Expr< A, T, Dim01, Dim01, i, j, k > iterA
Definition: Dg_times_Dg.hpp:14
promote< T, U >::V eval(const int N1, const int N2, const Number< Current_Dim0 > &, const Number< Current_Dim1 > &) const
Definition: Dg_times_Dg.hpp:19

◆ eval() [3/3]

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

Definition at line 35 of file Dg_times_Dg.hpp.

37  {
38  return iterA(N1, 0, 0) * iterB(0, 0, N2);
39  }
Dg_Expr< B, U, Dim01, Dim2, j, k, l > iterB
Definition: Dg_times_Dg.hpp:15
Dg_Expr< A, T, Dim01, Dim01, i, j, k > iterA
Definition: Dg_times_Dg.hpp:14

◆ operator()()

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

Definition at line 46 of file Dg_times_Dg.hpp.

47  {
48  return eval(N1, N2, Number<Dim01>(), Number<Dim01>());
49  }
promote< T, U >::V eval(const int N1, const int N2, const Number< Current_Dim0 > &, const Number< Current_Dim1 > &) const
Definition: Dg_times_Dg.hpp:19

Member Data Documentation

◆ iterA

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

Definition at line 14 of file Dg_times_Dg.hpp.

◆ iterB

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

Definition at line 15 of file Dg_times_Dg.hpp.


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