v0.8.13
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 
)

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

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  }
const Tensor1< T *, Dim > & a

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: