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

#include <src/ftensor/src/FTensor/Tensor3/Tensor3_times_Tensor3.hpp>

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

Public Member Functions

 Tensor3_times_Tensor3_22 (const Tensor3_Expr< A, T, Dim0, Dim1, Dim22, i, j, m > &a, const Tensor3_Expr< B, U, Dim2, Dim3, Dim22, k, l, m > &b)
 
auto operator() (const int &N1, const int &N2, const int &N3, const int &N4) const
 

Private Member Functions

template<int CurrentDim>
promote< T, U >::V eval (const int N1, const int N2, const int N3, const int N4, const Number< CurrentDim > &) const
 
promote< T, U >::V eval (const int N1, const int N2, const int N3, const int N4, const Number< 1 > &) const
 

Private Attributes

Tensor3_Expr< A, T, Dim0, Dim1, Dim22, i, j, miterA
 
Tensor3_Expr< B, U, Dim2, Dim3, Dim22, k, l, miterB
 

Detailed Description

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

Definition at line 701 of file Tensor3_times_Tensor3.hpp.

Constructor & Destructor Documentation

◆ Tensor3_times_Tensor3_22()

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

Definition at line 718 of file Tensor3_times_Tensor3.hpp.

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

Member Function Documentation

◆ eval() [1/2]

template<class A , class B , class T , class U , int Dim0, int Dim1, int Dim2, int Dim3, int Dim22, char i, char j, char k, char l, char m>
promote<T, U>::V FTensor::Tensor3_times_Tensor3_22< A, B, T, U, Dim0, Dim1, Dim2, Dim3, Dim22, 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 712 of file Tensor3_times_Tensor3.hpp.

713  {
714  return iterA(N1, N2, 0) * iterB( N3, N4, 0);
715  }

◆ eval() [2/2]

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

Definition at line 706 of file Tensor3_times_Tensor3.hpp.

708  {
709  return iterA(N1, N2, CurrentDim - 1) * iterB(N3, N4, CurrentDim - 1) +
710  eval(N1, N2, N3, N4, Number<CurrentDim - 1>());
711  }

◆ operator()()

template<class A , class B , class T , class U , int Dim0, int Dim1, int Dim2, int Dim3, int Dim22, char i, char j, char k, char l, char m>
auto FTensor::Tensor3_times_Tensor3_22< A, B, T, U, Dim0, Dim1, Dim2, Dim3, Dim22, i, j, k, l, m >::operator() ( const int &  N1,
const int &  N2,
const int &  N3,
const int &  N4 
) const
inline

Definition at line 722 of file Tensor3_times_Tensor3.hpp.

723  {
724  return eval(N1, N2, N3, N4, Number<Dim22>());
725  }

Member Data Documentation

◆ iterA

template<class A , class B , class T , class U , int Dim0, int Dim1, int Dim2, int Dim3, int Dim22, char i, char j, char k, char l, char m>
Tensor3_Expr<A, T, Dim0, Dim1, Dim22, i, j, m> FTensor::Tensor3_times_Tensor3_22< A, B, T, U, Dim0, Dim1, Dim2, Dim3, Dim22, i, j, k, l, m >::iterA
private

Definition at line 702 of file Tensor3_times_Tensor3.hpp.

◆ iterB

template<class A , class B , class T , class U , int Dim0, int Dim1, int Dim2, int Dim3, int Dim22, char i, char j, char k, char l, char m>
Tensor3_Expr<B, U, Dim2, Dim3, Dim22, k, l, m> FTensor::Tensor3_times_Tensor3_22< A, B, T, U, Dim0, Dim1, Dim2, Dim3, Dim22, i, j, k, l, m >::iterB
private

Definition at line 703 of file Tensor3_times_Tensor3.hpp.


The documentation for this class was generated from the following file:
FTensor::Tensor3_times_Tensor3_22::eval
promote< T, U >::V eval(const int N1, const int N2, const int N3, const int N4, const Number< CurrentDim > &) const
Definition: Tensor3_times_Tensor3.hpp:706
FTensor::Tensor3_times_Tensor3_22::iterB
Tensor3_Expr< B, U, Dim2, Dim3, Dim22, k, l, m > iterB
Definition: Tensor3_times_Tensor3.hpp:703
a
constexpr double a
Definition: approx_sphere.cpp:30
FTensor::Tensor3_times_Tensor3_22::iterA
Tensor3_Expr< A, T, Dim0, Dim1, Dim22, i, j, m > iterA
Definition: Tensor3_times_Tensor3.hpp:702