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

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

Collaboration diagram for FTensor::Tensor3_times_Tensor3_21< A, B, T, U, Dim0, Dim1, Dim23, Dim4, Dim5, i, j, k, l, m >:
[legend]

Public Member Functions

 Tensor3_times_Tensor3_21 (const Tensor3_Expr< A, T, Dim0, Dim1, Dim23, i, j, k > &a, const Tensor3_Expr< B, U, Dim23, Dim4, Dim5, k, l, m > &b)
 
promote< T, U >::V operator() (const int &N1, const int &N2, const int &N3, const int &N4) const
 

Private Member Functions

template<int CurrentDim>
promote< T, U >::V eval (const int N1, const int N2, const int N3, const int N4, const Number< CurrentDim > &) 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, Dim23, i, j, kiterA
 
Tensor3_Expr< B, U, Dim23, Dim4, Dim5, k, l, miterB
 

Detailed Description

template<class A, class B, class T, class U, int Dim0, int Dim1, int Dim23, int Dim4, int Dim5, char i, char j, char k, char l, char m>
class FTensor::Tensor3_times_Tensor3_21< A, B, T, U, Dim0, Dim1, Dim23, Dim4, Dim5, i, j, k, l, m >

Definition at line 615 of file Tensor3_times_Tensor3.hpp.

Constructor & Destructor Documentation

◆ Tensor3_times_Tensor3_21()

template<class A , class B , class T , class U , int Dim0, int Dim1, int Dim23, int Dim4, int Dim5, char i, char j, char k, char l, char m>
FTensor::Tensor3_times_Tensor3_21< A, B, T, U, Dim0, Dim1, Dim23, Dim4, Dim5, i, j, k, l, m >::Tensor3_times_Tensor3_21 ( const Tensor3_Expr< A, T, Dim0, Dim1, Dim23, i, j, k > &  a,
const Tensor3_Expr< B, U, Dim23, Dim4, Dim5, k, l, m > &  b 
)
inline

Definition at line 635 of file Tensor3_times_Tensor3.hpp.

638  : iterA(a), iterB(b)
639  {}

Member Function Documentation

◆ eval() [1/2]

template<class A , class B , class T , class U , int Dim0, int Dim1, int Dim23, int Dim4, int Dim5, char i, char j, char k, char l, char m>
promote<T, U>::V FTensor::Tensor3_times_Tensor3_21< A, B, T, U, Dim0, Dim1, Dim23, Dim4, Dim5, 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 628 of file Tensor3_times_Tensor3.hpp.

630  {
631  return iterA(N1, N2, 0) * iterB(0, N3, N4);
632  }

◆ eval() [2/2]

template<class A , class B , class T , class U , int Dim0, int Dim1, int Dim23, int Dim4, int Dim5, char i, char j, char k, char l, char m>
template<int CurrentDim>
promote<T, U>::V FTensor::Tensor3_times_Tensor3_21< A, B, T, U, Dim0, Dim1, Dim23, Dim4, Dim5, i, j, k, l, m >::eval ( const int  N1,
const int  N2,
const int  N3,
const int  N4,
const Number< CurrentDim > &   
) const
inlineprivate

Definition at line 622 of file Tensor3_times_Tensor3.hpp.

624  {
625  return iterA(N1, N2, CurrentDim - 1) * iterB(CurrentDim - 1, N3, N4)
626  + eval(N1, N2, N3, N4, Number<CurrentDim - 1>());
627  }

◆ operator()()

template<class A , class B , class T , class U , int Dim0, int Dim1, int Dim23, int Dim4, int Dim5, char i, char j, char k, char l, char m>
promote<T, U>::V FTensor::Tensor3_times_Tensor3_21< A, B, T, U, Dim0, Dim1, Dim23, Dim4, Dim5, i, j, k, l, m >::operator() ( const int &  N1,
const int &  N2,
const int &  N3,
const int &  N4 
) const
inline

Definition at line 640 of file Tensor3_times_Tensor3.hpp.

642  {
643  return eval(N1, N2, N3, N4, Number<Dim23>());
644  }

Member Data Documentation

◆ iterA

template<class A , class B , class T , class U , int Dim0, int Dim1, int Dim23, int Dim4, int Dim5, char i, char j, char k, char l, char m>
Tensor3_Expr<A, T, Dim0, Dim1, Dim23, i, j, k> FTensor::Tensor3_times_Tensor3_21< A, B, T, U, Dim0, Dim1, Dim23, Dim4, Dim5, i, j, k, l, m >::iterA
private

Definition at line 617 of file Tensor3_times_Tensor3.hpp.

◆ iterB

template<class A , class B , class T , class U , int Dim0, int Dim1, int Dim23, int Dim4, int Dim5, char i, char j, char k, char l, char m>
Tensor3_Expr<B, U, Dim23, Dim4, Dim5, k, l, m> FTensor::Tensor3_times_Tensor3_21< A, B, T, U, Dim0, Dim1, Dim23, Dim4, Dim5, i, j, k, l, m >::iterB
private

Definition at line 618 of file Tensor3_times_Tensor3.hpp.


The documentation for this class was generated from the following file:
FTensor::Tensor3_times_Tensor3_21::eval
promote< T, U >::V eval(const int N1, const int N2, const int N3, const int N4, const Number< CurrentDim > &) const
Definition: Tensor3_times_Tensor3.hpp:622
FTensor::Tensor3_times_Tensor3_21::iterA
Tensor3_Expr< A, T, Dim0, Dim1, Dim23, i, j, k > iterA
Definition: Tensor3_times_Tensor3.hpp:617
a
constexpr double a
Definition: approx_sphere.cpp:30
FTensor::Tensor3_times_Tensor3_21::iterB
Tensor3_Expr< B, U, Dim23, Dim4, Dim5, k, l, m > iterB
Definition: Tensor3_times_Tensor3.hpp:618