v0.14.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FTensor::Tensor3_times_Tensor3_23_23< A, B, T, U, Dim14, Dim25, Dim0, Dim3, i, j, k, l > Class Template Reference

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

Collaboration diagram for FTensor::Tensor3_times_Tensor3_23_23< A, B, T, U, Dim14, Dim25, Dim0, Dim3, i, j, k, l >:
[legend]

Public Member Functions

 Tensor3_times_Tensor3_23_23 (const Tensor3_Expr< A, T, Dim0, Dim14, Dim25, k, i, j > &a, const Tensor3_Expr< B, U, Dim3, Dim14, Dim25, l, i, j > &b)
 
promote< T, U >::V operator() (const int &N1, const int &N2) const
 

Private Member Functions

template<int CurrentDim0, int CurrentDim1>
promote< T, U >::V eval (const int N1, const int N2, const Number< CurrentDim0 > &, const Number< CurrentDim1 > &) const
 
template<int CurrentDim0>
promote< T, U >::V eval (const int N1, const int N2, const Number< CurrentDim0 > &, const Number< 1 > &) const
 
promote< T, U >::V eval (const int N1, const int N2, const Number< 1 > &, const Number< 1 > &) const
 

Private Attributes

Tensor3_Expr< A, T, Dim0, Dim14, Dim25, k, i, jiterA
 
Tensor3_Expr< B, U, Dim3, Dim14, Dim25, l, i, jiterB
 

Detailed Description

template<class A, class B, class T, class U, int Dim14, int Dim25, int Dim0, int Dim3, char i, char j, char k, char l>
class FTensor::Tensor3_times_Tensor3_23_23< A, B, T, U, Dim14, Dim25, Dim0, Dim3, i, j, k, l >

Definition at line 509 of file Tensor3_times_Tensor3.hpp.

Constructor & Destructor Documentation

◆ Tensor3_times_Tensor3_23_23()

template<class A , class B , class T , class U , int Dim14, int Dim25, int Dim0, int Dim3, char i, char j, char k, char l>
FTensor::Tensor3_times_Tensor3_23_23< A, B, T, U, Dim14, Dim25, Dim0, Dim3, i, j, k, l >::Tensor3_times_Tensor3_23_23 ( const Tensor3_Expr< A, T, Dim0, Dim14, Dim25, k, i, j > &  a,
const Tensor3_Expr< B, U, Dim3, Dim14, Dim25, l, i, j > &  b 
)
inline

Definition at line 534 of file Tensor3_times_Tensor3.hpp.

537  : iterA(a), iterB(b)
538  {}

Member Function Documentation

◆ eval() [1/3]

template<class A , class B , class T , class U , int Dim14, int Dim25, int Dim0, int Dim3, char i, char j, char k, char l>
promote<T, U>::V FTensor::Tensor3_times_Tensor3_23_23< A, B, T, U, Dim14, Dim25, Dim0, Dim3, i, j, k, l >::eval ( const int  N1,
const int  N2,
const Number< 1 > &  ,
const Number< 1 > &   
) const
inlineprivate

Definition at line 528 of file Tensor3_times_Tensor3.hpp.

529  {
530  return iterA(N1, 0, 0) * iterB(N2, 0, 0);
531  }

◆ eval() [2/3]

template<class A , class B , class T , class U , int Dim14, int Dim25, int Dim0, int Dim3, char i, char j, char k, char l>
template<int CurrentDim0>
promote<T, U>::V FTensor::Tensor3_times_Tensor3_23_23< A, B, T, U, Dim14, Dim25, Dim0, Dim3, i, j, k, l >::eval ( const int  N1,
const int  N2,
const Number< CurrentDim0 > &  ,
const Number< 1 > &   
) const
inlineprivate

Definition at line 522 of file Tensor3_times_Tensor3.hpp.

524  {
525  return iterA(N1, CurrentDim0 - 1, 0) * iterB(N2, CurrentDim0 - 1, 0) +
526  eval(N1, N2, Number<CurrentDim0 - 1>(), Number<Dim25>());
527  }

◆ eval() [3/3]

template<class A , class B , class T , class U , int Dim14, int Dim25, int Dim0, int Dim3, char i, char j, char k, char l>
template<int CurrentDim0, int CurrentDim1>
promote<T, U>::V FTensor::Tensor3_times_Tensor3_23_23< A, B, T, U, Dim14, Dim25, Dim0, Dim3, i, j, k, l >::eval ( const int  N1,
const int  N2,
const Number< CurrentDim0 > &  ,
const Number< CurrentDim1 > &   
) const
inlineprivate

Definition at line 514 of file Tensor3_times_Tensor3.hpp.

516  {
517  return iterA(N1, CurrentDim0 - 1, CurrentDim1 - 1) *
518  iterB(N2, CurrentDim0 - 1, CurrentDim1 - 1) +
519  eval(N1, N2, Number<CurrentDim0>(), Number<CurrentDim1 - 1>());
520  }

◆ operator()()

template<class A , class B , class T , class U , int Dim14, int Dim25, int Dim0, int Dim3, char i, char j, char k, char l>
promote<T, U>::V FTensor::Tensor3_times_Tensor3_23_23< A, B, T, U, Dim14, Dim25, Dim0, Dim3, i, j, k, l >::operator() ( const int &  N1,
const int &  N2 
) const
inline

Definition at line 539 of file Tensor3_times_Tensor3.hpp.

540  {
541  return eval(N1, N2, Number<Dim14>(), Number<Dim25>());
542  }

Member Data Documentation

◆ iterA

template<class A , class B , class T , class U , int Dim14, int Dim25, int Dim0, int Dim3, char i, char j, char k, char l>
Tensor3_Expr<A, T, Dim0, Dim14, Dim25, k, i, j> FTensor::Tensor3_times_Tensor3_23_23< A, B, T, U, Dim14, Dim25, Dim0, Dim3, i, j, k, l >::iterA
private

Definition at line 510 of file Tensor3_times_Tensor3.hpp.

◆ iterB

template<class A , class B , class T , class U , int Dim14, int Dim25, int Dim0, int Dim3, char i, char j, char k, char l>
Tensor3_Expr<B, U, Dim3, Dim14, Dim25, l, i, j> FTensor::Tensor3_times_Tensor3_23_23< A, B, T, U, Dim14, Dim25, Dim0, Dim3, i, j, k, l >::iterB
private

Definition at line 511 of file Tensor3_times_Tensor3.hpp.


The documentation for this class was generated from the following file:
a
constexpr double a
Definition: approx_sphere.cpp:30
FTensor::Tensor3_times_Tensor3_23_23::eval
promote< T, U >::V eval(const int N1, const int N2, const Number< CurrentDim0 > &, const Number< CurrentDim1 > &) const
Definition: Tensor3_times_Tensor3.hpp:514
FTensor::Tensor3_times_Tensor3_23_23::iterA
Tensor3_Expr< A, T, Dim0, Dim14, Dim25, k, i, j > iterA
Definition: Tensor3_times_Tensor3.hpp:510
FTensor::Tensor3_times_Tensor3_23_23::iterB
Tensor3_Expr< B, U, Dim3, Dim14, Dim25, l, i, j > iterB
Definition: Tensor3_times_Tensor3.hpp:511