v0.8.7
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, k > iterA
 
Dg_Expr< B, U, Dim, Dim2, l, k, m > iterB
 

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 
)

Definition at line 487 of file Tensor3_times_Dg.hpp.

489  : iterA(a), iterB(b)
490  {}
Dg_Expr< B, U, Dim, Dim2, l, k, m > iterB
Tensor3_Expr< A, T, Dim0, Dim1, Dim, i, j, k > iterA

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>
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
private

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  }
Dg_Expr< B, U, Dim, Dim2, l, k, m > iterB
promote< T, U >::V eval(const int N1, const int N2, const int N3, const int N4, const Number< Current_Dim > &) const
Tensor3_Expr< A, T, Dim0, Dim1, Dim, i, j, k > iterA

◆ 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>
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
private

Definition at line 475 of file Tensor3_times_Dg.hpp.

477  {
478  return iterA(N1, N2, 0) * iterB(N3, 0, N4);
479  }
Dg_Expr< B, U, Dim, Dim2, l, k, m > iterB
Tensor3_Expr< A, T, Dim0, Dim1, Dim, i, j, k > iterA

◆ 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

Definition at line 483 of file Tensor3_times_Dg.hpp.

484  {
485  return eval(N1, N2, N3, N4, Number<Dim>());
486  }
promote< T, U >::V eval(const int N1, const int N2, const int N3, const int N4, const Number< Current_Dim > &) const

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: