v0.14.0
Public Member Functions | Private Attributes | List of all members
FTensor::d_one_sided_Tensor1< T, Dim, i, axis > Class Template Reference

#include <src/ftensor/src/FTensor/Tensor1/d_one_sided_Tensor1.hpp>

Collaboration diagram for FTensor::d_one_sided_Tensor1< T, Dim, i, axis >:
[legend]

Public Member Functions

promote< T, double >::V operator() (const int N1) const
 
 d_one_sided_Tensor1 (const Tensor1< T *, Dim > &A, const int Di, const int Dj, const int Dk, const double Dx, const double Dy, const double Dz)
 

Private Attributes

const Tensor1< T *, Dim > & a
 
const int di
 
const int dj
 
const int dk
 
const double dx
 
const double dy
 
const double dz
 

Detailed Description

template<class T, int Dim, char i, int axis>
class FTensor::d_one_sided_Tensor1< T, Dim, i, axis >

Definition at line 8 of file d_one_sided_Tensor1.hpp.

Constructor & Destructor Documentation

◆ d_one_sided_Tensor1()

template<class T , int Dim, char i, int axis>
FTensor::d_one_sided_Tensor1< T, Dim, i, axis >::d_one_sided_Tensor1 ( const Tensor1< T *, Dim > &  A,
const int  Di,
const int  Dj,
const int  Dk,
const double  Dx,
const double  Dy,
const double  Dz 
)
inline

Definition at line 21 of file d_one_sided_Tensor1.hpp.

24  : a(A), di(Di), dj(Dj), dk(Dk), dx(Dx), dy(Dy), dz(Dz)
25  {}

Member Function Documentation

◆ operator()()

template<class T , int Dim, char i, int axis>
promote<T, double>::V FTensor::d_one_sided_Tensor1< T, Dim, i, axis >::operator() ( const int  N1) const
inline

Definition at line 15 of file d_one_sided_Tensor1.hpp.

16  {
17  return axis == 0 ? (a(N1) - *(a.ptr(N1) - di)) * dx
18  : (axis == 1 ? (a(N1) - *(a.ptr(N1) - dj)) * dy
19  : (a(N1) - *(a.ptr(N1) - dk)) * dz);
20  }

Member Data Documentation

◆ a

template<class T , int Dim, char i, int axis>
const Tensor1<T *, Dim>& FTensor::d_one_sided_Tensor1< T, Dim, i, axis >::a
private

Definition at line 10 of file d_one_sided_Tensor1.hpp.

◆ di

template<class T , int Dim, char i, int axis>
const int FTensor::d_one_sided_Tensor1< T, Dim, i, axis >::di
private

Definition at line 11 of file d_one_sided_Tensor1.hpp.

◆ dj

template<class T , int Dim, char i, int axis>
const int FTensor::d_one_sided_Tensor1< T, Dim, i, axis >::dj
private

Definition at line 11 of file d_one_sided_Tensor1.hpp.

◆ dk

template<class T , int Dim, char i, int axis>
const int FTensor::d_one_sided_Tensor1< T, Dim, i, axis >::dk
private

Definition at line 11 of file d_one_sided_Tensor1.hpp.

◆ dx

template<class T , int Dim, char i, int axis>
const double FTensor::d_one_sided_Tensor1< T, Dim, i, axis >::dx
private

Definition at line 12 of file d_one_sided_Tensor1.hpp.

◆ dy

template<class T , int Dim, char i, int axis>
const double FTensor::d_one_sided_Tensor1< T, Dim, i, axis >::dy
private

Definition at line 12 of file d_one_sided_Tensor1.hpp.

◆ dz

template<class T , int Dim, char i, int axis>
const double FTensor::d_one_sided_Tensor1< T, Dim, i, axis >::dz
private

Definition at line 12 of file d_one_sided_Tensor1.hpp.


The documentation for this class was generated from the following file:
FTensor::d_one_sided_Tensor1::dj
const int dj
Definition: d_one_sided_Tensor1.hpp:11
A
constexpr AssemblyType A
Definition: operators_tests.cpp:30
FTensor::d_one_sided_Tensor1::dz
const double dz
Definition: d_one_sided_Tensor1.hpp:12
FTensor::d_one_sided_Tensor1::dk
const int dk
Definition: d_one_sided_Tensor1.hpp:11
FTensor::d_one_sided_Tensor1::dx
const double dx
Definition: d_one_sided_Tensor1.hpp:12
FTensor::d_one_sided_Tensor1::a
const Tensor1< T *, Dim > & a
Definition: d_one_sided_Tensor1.hpp:10
FTensor::d_one_sided_Tensor1::dy
const double dy
Definition: d_one_sided_Tensor1.hpp:12
FTensor::d_one_sided_Tensor1::di
const int di
Definition: d_one_sided_Tensor1.hpp:11