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

#include <src/ftensor/src/FTensor/Tensor4/Tensor4_times_Dg_double.hpp>

Collaboration diagram for FTensor::Tensor4_times_Dg_23< A, B, T, U, Dim0, Dim1, Dim2, Dim3, Dim4, i, j, k, l, m >:
[legend]

Public Member Functions

promote< T, U >::V operator() (const int N1, const int N2, const int N3) const
 
 Tensor4_times_Dg_23 (const Tensor4_Expr< A, T, Dim0, Dim1, Dim2, Dim3, i, j, k, l > &a, const Dg_Expr< B, U, Dim2, Dim4, k, l, m > &b)
 

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 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 Number< 1 > &, const Number< Current_Dim1 > &) const
 
promote< T, U >::V eval (const int N1, const int N2, const int N3, const Number< 1 > &, const Number< 1 > &) const
 

Private Attributes

const Tensor4_Expr< A, T, Dim0, Dim1, Dim2, Dim3, i, j, k, literA
 
const Dg_Expr< B, U, Dim2, Dim4, k, l, miterB
 

Detailed Description

template<class A, class B, class T, class U, int Dim0, int Dim1, int Dim2, int Dim3, int Dim4, char i, char j, char k, char l, char m>
class FTensor::Tensor4_times_Dg_23< A, B, T, U, Dim0, Dim1, Dim2, Dim3, Dim4, i, j, k, l, m >

Definition at line 12 of file Tensor4_times_Dg_double.hpp.

Constructor & Destructor Documentation

◆ Tensor4_times_Dg_23()

template<class A , class B , class T , class U , int Dim0, int Dim1, int Dim2, int Dim3, int Dim4, char i, char j, char k, char l, char m>
FTensor::Tensor4_times_Dg_23< A, B, T, U, Dim0, Dim1, Dim2, Dim3, Dim4, i, j, k, l, m >::Tensor4_times_Dg_23 ( const Tensor4_Expr< A, T, Dim0, Dim1, Dim2, Dim3, i, j, k, l > &  a,
const Dg_Expr< B, U, Dim2, Dim4, k, l, m > &  b 
)
inline

Definition at line 42 of file Tensor4_times_Dg_double.hpp.

45  : iterA(a), iterB(b) {
46  static_assert(Dim2 == Dim3, "Dim2 and Dim3 should be equal");
47  }

Member Function Documentation

◆ eval() [1/3]

template<class A , class B , class T , class U , int Dim0, int Dim1, int Dim2, int Dim3, int Dim4, char i, char j, char k, char l, char m>
promote<T, U>::V FTensor::Tensor4_times_Dg_23< A, B, T, U, Dim0, Dim1, Dim2, Dim3, Dim4, i, j, k, l, m >::eval ( const int  N1,
const int  N2,
const int  N3,
const Number< 1 > &  ,
const Number< 1 > &   
) const
inlineprivate

Definition at line 31 of file Tensor4_times_Dg_double.hpp.

32  {
33  return iterA(N1, N2, 0, 0) * iterB(0, 0, N3);
34  }

◆ eval() [2/3]

template<class A , class B , class T , class U , int Dim0, int Dim1, int Dim2, int Dim3, int Dim4, char i, char j, char k, char l, char m>
template<int Current_Dim1>
promote<T, U>::V FTensor::Tensor4_times_Dg_23< A, B, T, U, Dim0, Dim1, Dim2, Dim3, Dim4, i, j, k, l, m >::eval ( const int  N1,
const int  N2,
const int  N3,
const Number< 1 > &  ,
const Number< Current_Dim1 > &   
) const
inlineprivate

Definition at line 25 of file Tensor4_times_Dg_double.hpp.

27  {
28  return iterA(N1, N2, 0, Current_Dim1 - 1) * iterB(0, Current_Dim1 - 1, N3) +
29  eval(N1, N2, N3, Number<Dim2>(), Number<Current_Dim1 - 1>());
30  }

◆ eval() [3/3]

template<class A , class B , class T , class U , int Dim0, int Dim1, int Dim2, int Dim3, int Dim4, char i, char j, char k, char l, char m>
template<int Current_Dim0, int Current_Dim1>
promote<T, U>::V FTensor::Tensor4_times_Dg_23< A, B, T, U, Dim0, Dim1, Dim2, Dim3, Dim4, i, j, k, l, m >::eval ( const int  N1,
const int  N2,
const int  N3,
const Number< Current_Dim0 > &  ,
const Number< Current_Dim1 > &   
) const
inlineprivate

Definition at line 17 of file Tensor4_times_Dg_double.hpp.

19  {
20  return iterA(N1, N2, Current_Dim0 - 1, Current_Dim1 - 1) *
21  iterB(Current_Dim0 - 1, Current_Dim1 - 1, N3) +
22  eval(N1, N2, N3, Number<Current_Dim0 - 1>(), Number<Current_Dim1>());
23  }

◆ operator()()

template<class A , class B , class T , class U , int Dim0, int Dim1, int Dim2, int Dim3, int Dim4, char i, char j, char k, char l, char m>
promote<T, U>::V FTensor::Tensor4_times_Dg_23< A, B, T, U, Dim0, Dim1, Dim2, Dim3, Dim4, i, j, k, l, m >::operator() ( const int  N1,
const int  N2,
const int  N3 
) const
inline

Definition at line 37 of file Tensor4_times_Dg_double.hpp.

38  {
39  return eval(N1, N2, N3, Number<Dim2>(), Number<Dim3>());
40  }

Member Data Documentation

◆ iterA

template<class A , class B , class T , class U , int Dim0, int Dim1, int Dim2, int Dim3, int Dim4, char i, char j, char k, char l, char m>
const Tensor4_Expr<A, T, Dim0, Dim1, Dim2, Dim3, i, j, k, l> FTensor::Tensor4_times_Dg_23< A, B, T, U, Dim0, Dim1, Dim2, Dim3, Dim4, i, j, k, l, m >::iterA
private

Definition at line 13 of file Tensor4_times_Dg_double.hpp.

◆ iterB

template<class A , class B , class T , class U , int Dim0, int Dim1, int Dim2, int Dim3, int Dim4, char i, char j, char k, char l, char m>
const Dg_Expr<B, U, Dim2, Dim4, k, l, m> FTensor::Tensor4_times_Dg_23< A, B, T, U, Dim0, Dim1, Dim2, Dim3, Dim4, i, j, k, l, m >::iterB
private

Definition at line 14 of file Tensor4_times_Dg_double.hpp.


The documentation for this class was generated from the following file:
FTensor::Tensor4_times_Dg_23::iterB
const Dg_Expr< B, U, Dim2, Dim4, k, l, m > iterB
Definition: Tensor4_times_Dg_double.hpp:14
FTensor::Tensor4_times_Dg_23::iterA
const Tensor4_Expr< A, T, Dim0, Dim1, Dim2, Dim3, i, j, k, l > iterA
Definition: Tensor4_times_Dg_double.hpp:13
a
constexpr double a
Definition: approx_sphere.cpp:30
FTensor::Tensor4_times_Dg_23::eval
promote< T, U >::V eval(const int N1, const int N2, const int N3, const Number< Current_Dim0 > &, const Number< Current_Dim1 > &) const
Definition: Tensor4_times_Dg_double.hpp:17