v0.14.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FTensor::Tensor3_times_Dg_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_Dg.hpp>

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

Public Member Functions

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

Definition at line 513 of file Tensor3_times_Dg.hpp.

Constructor & Destructor Documentation

◆ Tensor3_times_Dg_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_Dg_12_12< A, B, T, U, Dim03, Dim14, Dim2, Dim5, i, j, k, l >::Tensor3_times_Dg_12_12 ( const Tensor3_Expr< A, T, Dim03, Dim14, Dim2, i, j, k > &  a,
const Dg_Expr< B, U, Dim03, Dim5, i, j, l > &  b 
)
inline

Definition at line 538 of file Tensor3_times_Dg.hpp.

541  : iterA(a), iterB(b) {
542 
543  static_assert(Dim03 == Dim14, "Dimension 03 should be as Dim14");
544  }

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_Dg_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 532 of file Tensor3_times_Dg.hpp.

533  {
534  return iterA(0, 0, N1) * iterB(0, 0, N2);
535  }

◆ 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_Dg_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 526 of file Tensor3_times_Dg.hpp.

528  {
529  return iterA(CurrentDim0 - 1, 0, N1) * iterB(CurrentDim0 - 1, 0, N2) +
530  eval(N1, N2, Number<CurrentDim0 - 1>(), Number<Dim14>());
531  }

◆ 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_Dg_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 518 of file Tensor3_times_Dg.hpp.

520  {
521  return iterA(CurrentDim0 - 1, CurrentDim1 - 1, N1) *
522  iterB(CurrentDim0 - 1, CurrentDim1 - 1, N2) +
523  eval(N1, N2, Number<CurrentDim0>(), Number<CurrentDim1 - 1>());
524  }

◆ 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_Dg_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 545 of file Tensor3_times_Dg.hpp.

545  {
546  return eval(N1, N2, Number<Dim03>(), Number<Dim14>());
547  }

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_Dg_12_12< A, B, T, U, Dim03, Dim14, Dim2, Dim5, i, j, k, l >::iterA
private

Definition at line 514 of file Tensor3_times_Dg.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>
Dg_Expr<B, U, Dim03, Dim5, i, j, l> FTensor::Tensor3_times_Dg_12_12< A, B, T, U, Dim03, Dim14, Dim2, Dim5, i, j, k, l >::iterB
private

Definition at line 515 of file Tensor3_times_Dg.hpp.


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