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

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

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

Public Member Functions

promote< T, U >::V operator() (const int N1, const int N2, const int N3, const int N4) const
 
 Tensor3_times_Dg (const Tensor3_Expr< A, T, Dim0, Dim1, Dim, i, j, k > &a, const Dg_Expr< B, U, Dim, Dim2, l, k, m > &b)
 

Private Member Functions

template<int Current_Dim>
promote< T, U >::V eval (const int N1, const int N2, const int N3, const int N4, const Number< Current_Dim > &) 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, Dim, i, j, kiterA
 
Dg_Expr< B, U, Dim, Dim2, l, k, miterB
 

Detailed Description

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

Definition at line 462 of file Tensor3_times_Dg.hpp.

Constructor & Destructor Documentation

◆ Tensor3_times_Dg()

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

Definition at line 487 of file Tensor3_times_Dg.hpp.

489  : iterA(a), iterB(b)
490  {}

Member Function Documentation

◆ eval() [1/2]

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

477  {
478  return iterA(N1, N2, 0) * iterB(N3, 0, N4);
479  }

◆ eval() [2/2]

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

Definition at line 469 of file Tensor3_times_Dg.hpp.

471  {
472  return iterA(N1, N2, Current_Dim - 1) * iterB(N3, Current_Dim - 1, N4)
473  + eval(N1, N2, N3, N4, Number<Current_Dim - 1>());
474  }

◆ operator()()

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

Definition at line 483 of file Tensor3_times_Dg.hpp.

484  {
485  return eval(N1, N2, N3, N4, Number<Dim>());
486  }

Member Data Documentation

◆ iterA

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

Definition at line 464 of file Tensor3_times_Dg.hpp.

◆ iterB

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

Definition at line 465 of file Tensor3_times_Dg.hpp.


The documentation for this class was generated from the following file:
FTensor::Tensor3_times_Dg::iterB
Dg_Expr< B, U, Dim, Dim2, l, k, m > iterB
Definition: Tensor3_times_Dg.hpp:465
FTensor::Tensor3_times_Dg::iterA
Tensor3_Expr< A, T, Dim0, Dim1, Dim, i, j, k > iterA
Definition: Tensor3_times_Dg.hpp:464
FTensor::Tensor3_times_Dg::eval
promote< T, U >::V eval(const int N1, const int N2, const int N3, const int N4, const Number< Current_Dim > &) const
Definition: Tensor3_times_Dg.hpp:469
a
constexpr double a
Definition: approx_sphere.cpp:30