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

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

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

Public Member Functions

 Ddg_times_Tensor4_2323_klij (const Ddg_Expr< A, T, Dim01, Dim23, m, n, k, l > &a, const Tensor4_Expr< B, U, Dim0, Dim1, Dim23, Dim23, i, j, 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, Dim01, Dim23, m, n, k, literA
 
Tensor4_Expr< B, U, Dim0, Dim1, Dim23, Dim23, i, j, m, niterB
 

Detailed Description

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

Definition at line 85 of file Ddg_times_Tensor4.hpp.

Constructor & Destructor Documentation

◆ Ddg_times_Tensor4_2323_klij()

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim0, int Dim1, char i, char j, char k, char l, char m, char n>
FTensor::Ddg_times_Tensor4_2323_klij< A, B, T, U, Dim01, Dim23, Dim0, Dim1, i, j, k, l, m, n >::Ddg_times_Tensor4_2323_klij ( const Ddg_Expr< A, T, Dim01, Dim23, m, n, k, l > &  a,
const Tensor4_Expr< B, U, Dim0, Dim1, Dim23, Dim23, i, j, m, n > &  b 
)
inline

Definition at line 114 of file Ddg_times_Tensor4.hpp.

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

Member Function Documentation

◆ eval() [1/3]

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

Definition at line 106 of file Ddg_times_Tensor4.hpp.

109  {
110  return iterA(0, 0, N3, N4) * iterB(N1, N2, 0, 0);
111  }

◆ eval() [2/3]

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

Definition at line 100 of file Ddg_times_Tensor4.hpp.

101  {
102  return iterA(0, Current_Dim1 - 1, N3, N4) *
103  iterB(N1, N2, 0, Current_Dim1 - 1) +
104  eval(N1, N2, N3, N4, Number<Dim23>(), Number<Current_Dim1 - 1>());
105  }

◆ eval() [3/3]

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim0, int Dim1, 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_Tensor4_2323_klij< A, B, T, U, Dim01, Dim23, Dim0, Dim1, 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
inlineprivate

Definition at line 91 of file Ddg_times_Tensor4.hpp.

92  {
93  return iterA(Current_Dim0 - 1, Current_Dim1 - 1, N3, N4) *
94  iterB(N1, N2, Current_Dim0 - 1, Current_Dim1 - 1) +
95  eval(N1, N2, N3, N4, Number<Current_Dim0 - 1>(),
96  Number<Current_Dim1>());
97  }

◆ operator()()

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

Definition at line 118 of file Ddg_times_Tensor4.hpp.

119  {
120  return eval(N1, N2, N3, N4, Number<Dim01>(), Number<Dim01>());
121  }

Member Data Documentation

◆ iterA

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim0, int Dim1, char i, char j, char k, char l, char m, char n>
Ddg_Expr<A, T, Dim01, Dim23, m, n, k, l> FTensor::Ddg_times_Tensor4_2323_klij< A, B, T, U, Dim01, Dim23, Dim0, Dim1, i, j, k, l, m, n >::iterA
private

Definition at line 86 of file Ddg_times_Tensor4.hpp.

◆ iterB

template<class A , class B , class T , class U , int Dim01, int Dim23, int Dim0, int Dim1, char i, char j, char k, char l, char m, char n>
Tensor4_Expr<B, U, Dim0, Dim1, Dim23, Dim23, i, j, m, n> FTensor::Ddg_times_Tensor4_2323_klij< A, B, T, U, Dim01, Dim23, Dim0, Dim1, i, j, k, l, m, n >::iterB
private

Definition at line 87 of file Ddg_times_Tensor4.hpp.


The documentation for this class was generated from the following file:
FTensor::Ddg_times_Tensor4_2323_klij::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_Tensor4.hpp:91
FTensor::Ddg_times_Tensor4_2323_klij::iterB
Tensor4_Expr< B, U, Dim0, Dim1, Dim23, Dim23, i, j, m, n > iterB
Definition: Ddg_times_Tensor4.hpp:87
a
constexpr double a
Definition: approx_sphere.cpp:30
FTensor::Ddg_times_Tensor4_2323_klij::iterA
Ddg_Expr< A, T, Dim01, Dim23, m, n, k, l > iterA
Definition: Ddg_times_Tensor4.hpp:86