v0.14.0
Public Member Functions | Private Types | Private Attributes | List of all members
FTensor::Ddg_times_Ddg_0101< A, B, T, U, Dim01, Dim23, Dim45, i, j, k, l, m, n > Class Template Reference

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

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

Public Member Functions

 Ddg_times_Ddg_0101 (const IterA &a, const IterB &b)
 
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
 
promote< T, U >::V operator() (const int N1, const int N2, const int N3, const int N4) const
 

Private Types

using IterA = Ddg_Expr< A, T, Dim45, Dim01, m, n, i, j >
 
using IterB = Ddg_Expr< B, U, Dim45, Dim23, m, n, k, l >
 

Private Attributes

IterA iterA
 
IterB iterB
 

Detailed Description

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

Definition at line 89 of file Ddg_times_Ddg.hpp.

Member Typedef Documentation

◆ IterA

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim45, char i, char j, char k, char l, char m, char n>
using FTensor::Ddg_times_Ddg_0101< A, B, T, U, Dim01, Dim23, Dim45, i, j, k, l, m, n >::IterA = Ddg_Expr<A, T, Dim45, Dim01, m, n, i, j>
private

Definition at line 91 of file Ddg_times_Ddg.hpp.

◆ IterB

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim45, char i, char j, char k, char l, char m, char n>
using FTensor::Ddg_times_Ddg_0101< A, B, T, U, Dim01, Dim23, Dim45, i, j, k, l, m, n >::IterB = Ddg_Expr<B, U, Dim45, Dim23, m, n, k, l>
private

Definition at line 92 of file Ddg_times_Ddg.hpp.

Constructor & Destructor Documentation

◆ Ddg_times_Ddg_0101()

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim45, char i, char j, char k, char l, char m, char n>
FTensor::Ddg_times_Ddg_0101< A, B, T, U, Dim01, Dim23, Dim45, i, j, k, l, m, n >::Ddg_times_Ddg_0101 ( const IterA a,
const IterB b 
)
inline

Definition at line 98 of file Ddg_times_Ddg.hpp.

98 : iterA(a), iterB(b) {}

Member Function Documentation

◆ eval() [1/3]

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim45, char i, char j, char k, char l, char m, char n>
promote<T, U>::V FTensor::Ddg_times_Ddg_0101< A, B, T, U, Dim01, Dim23, Dim45, 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
inline

Definition at line 118 of file Ddg_times_Ddg.hpp.

120  {
121  return iterA(0, 0, N1, N2) * iterB(0, 0, N3, N4);
122  }

◆ eval() [2/3]

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim45, char i, char j, char k, char l, char m, char n>
template<int Current_Dim1>
promote<T, U>::V FTensor::Ddg_times_Ddg_0101< A, B, T, U, Dim01, Dim23, Dim45, 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
inline

Definition at line 110 of file Ddg_times_Ddg.hpp.

112  {
113  return iterA(0, Current_Dim1 - 1, N1, N2) *
114  iterB(0, Current_Dim1 - 1, N3, N4) +
115  eval(N1, N2, N3, N4, Number<Dim45>(),
116  Number<Current_Dim1 - 1>());
117  }

◆ eval() [3/3]

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim45, 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_times_Ddg_0101< A, B, T, U, Dim01, Dim23, Dim45, 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
inline

Definition at line 101 of file Ddg_times_Ddg.hpp.

103  {
104  return iterA(Current_Dim0 - 1, Current_Dim1 - 1, N1, N2) *
105  iterB(Current_Dim0 - 1, Current_Dim1 - 1, N3, N4) +
106  eval(N1, N2, N3, N4, Number<Current_Dim0 - 1>(),
107  Number<Current_Dim1>());
108  }

◆ operator()()

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

Definition at line 124 of file Ddg_times_Ddg.hpp.

125  {
126  return eval(N1, N2, N3, N4, Number<Dim45>(), Number<Dim45>());
127  }

Member Data Documentation

◆ iterA

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim45, char i, char j, char k, char l, char m, char n>
IterA FTensor::Ddg_times_Ddg_0101< A, B, T, U, Dim01, Dim23, Dim45, i, j, k, l, m, n >::iterA
private

Definition at line 94 of file Ddg_times_Ddg.hpp.

◆ iterB

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim45, char i, char j, char k, char l, char m, char n>
IterB FTensor::Ddg_times_Ddg_0101< A, B, T, U, Dim01, Dim23, Dim45, i, j, k, l, m, n >::iterB
private

Definition at line 95 of file Ddg_times_Ddg.hpp.


The documentation for this class was generated from the following file:
FTensor::Ddg_times_Ddg_0101::iterB
IterB iterB
Definition: Ddg_times_Ddg.hpp:95
a
constexpr double a
Definition: approx_sphere.cpp:30
FTensor::Ddg_times_Ddg_0101::eval
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
Definition: Ddg_times_Ddg.hpp:101
FTensor::Ddg_times_Ddg_0101::iterA
IterA iterA
Definition: Ddg_times_Ddg.hpp:94