v0.14.0
Public Member Functions | Private Attributes | List of all members
FTensor::Tensor4_or_Tensor4< A, B, T, U, Dim01, Dim01, Dim23, Dim23, Dim01, Dim01, Dim23, Dim23, i, j, k, l, j, i, l, k > Class Template Reference

#include <src/ftensor/src/FTensor/Tensor4/Tensor4_or_Tensor4.hpp>

Collaboration diagram for FTensor::Tensor4_or_Tensor4< A, B, T, U, Dim01, Dim01, Dim23, Dim23, Dim01, Dim01, Dim23, Dim23, i, j, k, l, j, i, l, k >:
[legend]

Public Member Functions

promote< T, U >::V operator() (const int N1, const int N2, const int N3, const int N4) const
 
 Tensor4_or_Tensor4 (const Tensor4_Expr< A, T, Dim01, Dim01, Dim23, Dim23, i, j, k, l > &a, const Tensor4_Expr< B, U, Dim01, Dim01, Dim23, Dim23, j, i, l, k > &b)
 

Private Attributes

Tensor4_Expr< A, T, Dim01, Dim01, Dim23, Dim23, i, j, k, literA
 
Tensor4_Expr< B, U, Dim01, Dim01, Dim23, Dim23, j, i, l, kiterB
 

Detailed Description

template<class A, class B, class T, class U, int Dim01, int Dim23, char i, char j, char k, char l>
class FTensor::Tensor4_or_Tensor4< A, B, T, U, Dim01, Dim01, Dim23, Dim23, Dim01, Dim01, Dim23, Dim23, i, j, k, l, j, i, l, k >

Definition at line 18 of file Tensor4_or_Tensor4.hpp.

Constructor & Destructor Documentation

◆ Tensor4_or_Tensor4()

template<class A , class B , class T , class U , int Dim01, int Dim23, char i, char j, char k, char l>
FTensor::Tensor4_or_Tensor4< A, B, T, U, Dim01, Dim01, Dim23, Dim23, Dim01, Dim01, Dim23, Dim23, i, j, k, l, j, i, l, k >::Tensor4_or_Tensor4 ( const Tensor4_Expr< A, T, Dim01, Dim01, Dim23, Dim23, i, j, k, l > &  a,
const Tensor4_Expr< B, U, Dim01, Dim01, Dim23, Dim23, j, i, l, k > &  b 
)
inline

Definition at line 29 of file Tensor4_or_Tensor4.hpp.

32  : iterA(a), iterB(b) {}

Member Function Documentation

◆ operator()()

template<class A , class B , class T , class U , int Dim01, int Dim23, char i, char j, char k, char l>
promote<T, U>::V FTensor::Tensor4_or_Tensor4< A, B, T, U, Dim01, Dim01, Dim23, Dim23, Dim01, Dim01, Dim23, Dim23, i, j, k, l, j, i, l, k >::operator() ( const int  N1,
const int  N2,
const int  N3,
const int  N4 
) const
inline

Definition at line 24 of file Tensor4_or_Tensor4.hpp.

25  {
26  return iterA(N1, N2, N3, N4) + iterB(N2, N1, N4, N3);
27  }

Member Data Documentation

◆ iterA

template<class A , class B , class T , class U , int Dim01, int Dim23, char i, char j, char k, char l>
Tensor4_Expr<A, T, Dim01, Dim01, Dim23, Dim23, i, j, k, l> FTensor::Tensor4_or_Tensor4< A, B, T, U, Dim01, Dim01, Dim23, Dim23, Dim01, Dim01, Dim23, Dim23, i, j, k, l, j, i, l, k >::iterA
private

Definition at line 20 of file Tensor4_or_Tensor4.hpp.

◆ iterB

template<class A , class B , class T , class U , int Dim01, int Dim23, char i, char j, char k, char l>
Tensor4_Expr<B, U, Dim01, Dim01, Dim23, Dim23, j, i, l, k> FTensor::Tensor4_or_Tensor4< A, B, T, U, Dim01, Dim01, Dim23, Dim23, Dim01, Dim01, Dim23, Dim23, i, j, k, l, j, i, l, k >::iterB
private

Definition at line 21 of file Tensor4_or_Tensor4.hpp.


The documentation for this class was generated from the following file:
FTensor::Tensor4_or_Tensor4< A, B, T, U, Dim01, Dim01, Dim23, Dim23, Dim01, Dim01, Dim23, Dim23, i, j, k, l, j, i, l, k >::iterB
Tensor4_Expr< B, U, Dim01, Dim01, Dim23, Dim23, j, i, l, k > iterB
Definition: Tensor4_or_Tensor4.hpp:21
a
constexpr double a
Definition: approx_sphere.cpp:30
FTensor::Tensor4_or_Tensor4< A, B, T, U, Dim01, Dim01, Dim23, Dim23, Dim01, Dim01, Dim23, Dim23, i, j, k, l, j, i, l, k >::iterA
Tensor4_Expr< A, T, Dim01, Dim01, Dim23, Dim23, i, j, k, l > iterA
Definition: Tensor4_or_Tensor4.hpp:20