v0.8.15
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FTensor::Ddg_carat_Ddg_13< A, B, T, U, Dim, Dim23, i, j, k, l, m, n > Class Template Reference

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

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

Public Member Functions

 Ddg_carat_Ddg_13 (const Ddg_Expr< A, T, Dim, Dim, i, j, k, l > &a, const Ddg_Expr< B, U, Dim, Dim23, j, l, m, n > &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, int Current_Dim1>
promote< T, U >::V eval (const int N1, const int N2, const int N3, const int N4, 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 int N3, const int N4, const Number< 1 > &, const Number< Current_Dim1 > &) const
 
promote< T, U >::V eval (const int N1, const int N2, const int N3, const int N4, const Number< 1 > &, const Number< 1 > &) const
 

Private Attributes

Ddg_Expr< A, T, Dim, Dim, i, j, k, l > iterA
 
Ddg_Expr< B, U, Dim, Dim23, j, l, m, n > iterB
 

Detailed Description

template<class A, class B, class T, class U, int Dim, int Dim23, char i, char j, char k, char l, char m, char n>
class FTensor::Ddg_carat_Ddg_13< A, B, T, U, Dim, Dim23, i, j, k, l, m, n >

Definition at line 12 of file Ddg_carat_Ddg.hpp.

Constructor & Destructor Documentation

◆ Ddg_carat_Ddg_13()

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

Definition at line 44 of file Ddg_carat_Ddg.hpp.

46  : iterA(a), iterB(b)
47  {}
Ddg_Expr< A, T, Dim, Dim, i, j, k, l > iterA
Ddg_Expr< B, U, Dim, Dim23, j, l, m, n > iterB

Member Function Documentation

◆ eval() [1/3]

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

Definition at line 19 of file Ddg_carat_Ddg.hpp.

21  {
22  return iterA(Current_Dim0 - 1, N1, Current_Dim1 - 1, N2)
23  * iterB(Current_Dim0 - 1, Current_Dim1 - 1, N3, N4)
24  + eval(N1, N2, N3, N4, Number<Current_Dim0 - 1>(),
25  Number<Current_Dim1>());
26  }
Ddg_Expr< A, T, Dim, Dim, i, j, k, l > iterA
Ddg_Expr< B, U, Dim, Dim23, j, l, m, n > iterB
promote< T, U >::V eval(const int N1, const int N2, const int N3, const int N4, const Number< Current_Dim0 > &, const Number< Current_Dim1 > &) const

◆ eval() [2/3]

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

Definition at line 29 of file Ddg_carat_Ddg.hpp.

31  {
32  return iterA(0, N1, Current_Dim1 - 1, N2)
33  * iterB(0, Current_Dim1 - 1, N3, N4)
34  + eval(N1, N2, N3, N4, Number<Dim>(), Number<Current_Dim1 - 1>());
35  }
Ddg_Expr< A, T, Dim, Dim, i, j, k, l > iterA
Ddg_Expr< B, U, Dim, Dim23, j, l, m, n > iterB
promote< T, U >::V eval(const int N1, const int N2, const int N3, const int N4, const Number< Current_Dim0 > &, const Number< Current_Dim1 > &) const

◆ eval() [3/3]

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

Definition at line 37 of file Ddg_carat_Ddg.hpp.

39  {
40  return iterA(0, N1, 0, N2) * iterB(0, 0, N3, N4);
41  }
Ddg_Expr< A, T, Dim, Dim, i, j, k, l > iterA
Ddg_Expr< B, U, Dim, Dim23, j, l, m, n > iterB

◆ operator()()

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

Definition at line 49 of file Ddg_carat_Ddg.hpp.

50  {
51  return eval(N1, N2, N3, N4, Number<Dim>(), Number<Dim>());
52  }
promote< T, U >::V eval(const int N1, const int N2, const int N3, const int N4, const Number< Current_Dim0 > &, const Number< Current_Dim1 > &) const

Member Data Documentation

◆ iterA

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

Definition at line 14 of file Ddg_carat_Ddg.hpp.

◆ iterB

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

Definition at line 15 of file Ddg_carat_Ddg.hpp.


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