v0.14.0
Public Member Functions | Private Types | Private Attributes | List of all members
FTensor::Ddg_times_Ddg_0123< 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_0123< A, B, T, U, Dim01, Dim23, Dim45, i, j, k, l, m, n >:
[legend]

Public Member Functions

 Ddg_times_Ddg_0123 (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, Dim23, Dim45, k, l, m, n >
 

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_0123< A, B, T, U, Dim01, Dim23, Dim45, i, j, k, l, m, n >

Definition at line 201 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_0123< 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 203 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_0123< A, B, T, U, Dim01, Dim23, Dim45, i, j, k, l, m, n >::IterB = Ddg_Expr<B, U, Dim23, Dim45, k, l, m, n>
private

Definition at line 204 of file Ddg_times_Ddg.hpp.

Constructor & Destructor Documentation

◆ Ddg_times_Ddg_0123()

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_0123< A, B, T, U, Dim01, Dim23, Dim45, i, j, k, l, m, n >::Ddg_times_Ddg_0123 ( const IterA a,
const IterB b 
)
inline

Definition at line 210 of file Ddg_times_Ddg.hpp.

210 : 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_0123< 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 229 of file Ddg_times_Ddg.hpp.

231  {
232  return iterA(0, 0, N1, N2) * iterB(N3, N4, 0, 0);
233  }

◆ 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_0123< 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 222 of file Ddg_times_Ddg.hpp.

224  {
225  return iterA(0, Current_Dim1 - 1, N1, N2) *
226  iterB(N3, N4, 0, Current_Dim1 - 1) +
227  eval(N1, N2, N3, N4, Number<Dim45>(), Number<Current_Dim1 - 1>());
228  }

◆ 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_0123< 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 213 of file Ddg_times_Ddg.hpp.

215  {
216  return iterA(Current_Dim0 - 1, Current_Dim1 - 1, N1, N2) *
217  iterB(N3, N4, Current_Dim0 - 1, Current_Dim1 - 1) +
218  eval(N1, N2, N3, N4, Number<Current_Dim0 - 1>(),
219  Number<Current_Dim1>());
220  }

◆ 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_0123< 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 235 of file Ddg_times_Ddg.hpp.

236  {
237  return eval(N1, N2, N3, N4, Number<Dim45>(), Number<Dim45>());
238  }

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_0123< A, B, T, U, Dim01, Dim23, Dim45, i, j, k, l, m, n >::iterA
private

Definition at line 206 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_0123< A, B, T, U, Dim01, Dim23, Dim45, i, j, k, l, m, n >::iterB
private

Definition at line 207 of file Ddg_times_Ddg.hpp.


The documentation for this class was generated from the following file:
FTensor::Ddg_times_Ddg_0123::iterB
IterB iterB
Definition: Ddg_times_Ddg.hpp:207
a
constexpr double a
Definition: approx_sphere.cpp:30
FTensor::Ddg_times_Ddg_0123::iterA
IterA iterA
Definition: Ddg_times_Ddg.hpp:206
FTensor::Ddg_times_Ddg_0123::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:213