v0.14.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FTensor::Tensor3_times_Tensor3_12_12< A, B, T, U, Dim03, Dim14, Dim2, Dim5, i, j, k, l > Class Template Reference

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

Collaboration diagram for FTensor::Tensor3_times_Tensor3_12_12< A, B, T, U, Dim03, Dim14, Dim2, Dim5, i, j, k, l >:
[legend]

Public Member Functions

 Tensor3_times_Tensor3_12_12 (const Tensor3_Expr< A, T, Dim03, Dim14, Dim2, i, j, k > &a, const Tensor3_Expr< B, U, Dim03, Dim14, Dim5, i, j, l > &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, Dim03, Dim14, Dim2, i, j, kiterA
 
Tensor3_Expr< B, U, Dim03, Dim14, Dim5, i, j, literB
 

Detailed Description

template<class A, class B, class T, class U, int Dim03, int Dim14, int Dim2, int Dim5, char i, char j, char k, char l>
class FTensor::Tensor3_times_Tensor3_12_12< A, B, T, U, Dim03, Dim14, Dim2, Dim5, i, j, k, l >

Definition at line 562 of file Tensor3_times_Tensor3.hpp.

Constructor & Destructor Documentation

◆ Tensor3_times_Tensor3_12_12()

template<class A , class B , class T , class U , int Dim03, int Dim14, int Dim2, int Dim5, char i, char j, char k, char l>
FTensor::Tensor3_times_Tensor3_12_12< A, B, T, U, Dim03, Dim14, Dim2, Dim5, i, j, k, l >::Tensor3_times_Tensor3_12_12 ( const Tensor3_Expr< A, T, Dim03, Dim14, Dim2, i, j, k > &  a,
const Tensor3_Expr< B, U, Dim03, Dim14, Dim5, i, j, l > &  b 
)
inline

Definition at line 587 of file Tensor3_times_Tensor3.hpp.

590  : iterA(a), iterB(b)
591  {}

Member Function Documentation

◆ eval() [1/3]

template<class A , class B , class T , class U , int Dim03, int Dim14, int Dim2, int Dim5, char i, char j, char k, char l>
promote<T, U>::V FTensor::Tensor3_times_Tensor3_12_12< A, B, T, U, Dim03, Dim14, Dim2, Dim5, i, j, k, l >::eval ( const int  N1,
const int  N2,
const Number< 1 > &  ,
const Number< 1 > &   
) const
inlineprivate

Definition at line 581 of file Tensor3_times_Tensor3.hpp.

582  {
583  return iterA(0, 0, N1) * iterB(0, 0, N2);
584  }

◆ eval() [2/3]

template<class A , class B , class T , class U , int Dim03, int Dim14, int Dim2, int Dim5, char i, char j, char k, char l>
template<int CurrentDim0>
promote<T, U>::V FTensor::Tensor3_times_Tensor3_12_12< A, B, T, U, Dim03, Dim14, Dim2, Dim5, i, j, k, l >::eval ( const int  N1,
const int  N2,
const Number< CurrentDim0 > &  ,
const Number< 1 > &   
) const
inlineprivate

Definition at line 575 of file Tensor3_times_Tensor3.hpp.

577  {
578  return iterA(CurrentDim0 - 1, 0, N1) * iterB(CurrentDim0 - 1, 0, N2) +
579  eval(N1, N2, Number<CurrentDim0 - 1>(), Number<Dim14>());
580  }

◆ eval() [3/3]

template<class A , class B , class T , class U , int Dim03, int Dim14, int Dim2, int Dim5, char i, char j, char k, char l>
template<int CurrentDim0, int CurrentDim1>
promote<T, U>::V FTensor::Tensor3_times_Tensor3_12_12< A, B, T, U, Dim03, Dim14, Dim2, Dim5, i, j, k, l >::eval ( const int  N1,
const int  N2,
const Number< CurrentDim0 > &  ,
const Number< CurrentDim1 > &   
) const
inlineprivate

Definition at line 567 of file Tensor3_times_Tensor3.hpp.

569  {
570  return iterA(CurrentDim0 - 1, CurrentDim1 - 1, N1) *
571  iterB(CurrentDim0 - 1, CurrentDim1 - 1, N2) +
572  eval(N1, N2, Number<CurrentDim0>(), Number<CurrentDim1 - 1>());
573  }

◆ operator()()

template<class A , class B , class T , class U , int Dim03, int Dim14, int Dim2, int Dim5, char i, char j, char k, char l>
promote<T, U>::V FTensor::Tensor3_times_Tensor3_12_12< A, B, T, U, Dim03, Dim14, Dim2, Dim5, i, j, k, l >::operator() ( const int &  N1,
const int &  N2 
) const
inline

Definition at line 592 of file Tensor3_times_Tensor3.hpp.

593  {
594  return eval(N1, N2, Number<Dim03>(), Number<Dim14>());
595  }

Member Data Documentation

◆ iterA

template<class A , class B , class T , class U , int Dim03, int Dim14, int Dim2, int Dim5, char i, char j, char k, char l>
Tensor3_Expr<A, T, Dim03, Dim14, Dim2, i, j, k> FTensor::Tensor3_times_Tensor3_12_12< A, B, T, U, Dim03, Dim14, Dim2, Dim5, i, j, k, l >::iterA
private

Definition at line 563 of file Tensor3_times_Tensor3.hpp.

◆ iterB

template<class A , class B , class T , class U , int Dim03, int Dim14, int Dim2, int Dim5, char i, char j, char k, char l>
Tensor3_Expr<B, U, Dim03, Dim14, Dim5, i, j, l> FTensor::Tensor3_times_Tensor3_12_12< A, B, T, U, Dim03, Dim14, Dim2, Dim5, i, j, k, l >::iterB
private

Definition at line 564 of file Tensor3_times_Tensor3.hpp.


The documentation for this class was generated from the following file:
FTensor::Tensor3_times_Tensor3_12_12::eval
promote< T, U >::V eval(const int N1, const int N2, const Number< CurrentDim0 > &, const Number< CurrentDim1 > &) const
Definition: Tensor3_times_Tensor3.hpp:567
a
constexpr double a
Definition: approx_sphere.cpp:30
FTensor::Tensor3_times_Tensor3_12_12::iterB
Tensor3_Expr< B, U, Dim03, Dim14, Dim5, i, j, l > iterB
Definition: Tensor3_times_Tensor3.hpp:564
FTensor::Tensor3_times_Tensor3_12_12::iterA
Tensor3_Expr< A, T, Dim03, Dim14, Dim2, i, j, k > iterA
Definition: Tensor3_times_Tensor3.hpp:563