v0.14.0
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, kiterA
 
Dg_Expr< B, U, Dim23, Dim2, l, m, kiterB
 

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 199 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 
)
inline

Definition at line 219 of file Dg_times_Dg.hpp.

221  : iterA(a), iterB(b)
222  {}

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>
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
inlineprivate

Definition at line 212 of file Dg_times_Dg.hpp.

214  {
215  return iterA(N1, N2, 0) * iterB(N3, N4, 0);
216  }

◆ 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>
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
inlineprivate

Definition at line 206 of file Dg_times_Dg.hpp.

208  {
209  return iterA(N1, N2, Current_Dim0 - 1) * iterB(N3, N4, Current_Dim0 - 1)
210  + eval(N1, N2, N3, N4, Number<Current_Dim0 - 1>());
211  }

◆ 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
inline

Definition at line 224 of file Dg_times_Dg.hpp.

225  {
226  return eval(N1, N2, N3, N4, Number<Dim2>());
227  }

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 201 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 202 of file Dg_times_Dg.hpp.


The documentation for this class was generated from the following file:
FTensor::Dg_times_Dg_2::iterB
Dg_Expr< B, U, Dim23, Dim2, l, m, k > iterB
Definition: Dg_times_Dg.hpp:202
a
constexpr double a
Definition: approx_sphere.cpp:30
FTensor::Dg_times_Dg_2::iterA
Dg_Expr< A, T, Dim01, Dim2, i, j, k > iterA
Definition: Dg_times_Dg.hpp:201
FTensor::Dg_times_Dg_2::eval
promote< T, U >::V eval(const int N1, const int N2, const int N3, const int N4, const Number< Current_Dim0 > &) const
Definition: Dg_times_Dg.hpp:206