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

#include <src/ftensor/src/FTensor/Tensor2_symmetric/d_one_sided_Tensor2_symmetric.hpp>

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

Public Member Functions

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

Private Attributes

const Tensor2_symmetric< 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, char j, int axis>
class FTensor::d_one_sided_Tensor2_symmetric< T, Dim, i, j, axis >

Definition at line 9 of file d_one_sided_Tensor2_symmetric.hpp.

Constructor & Destructor Documentation

◆ d_one_sided_Tensor2_symmetric()

template<class T , int Dim, char i, char j, int axis>
FTensor::d_one_sided_Tensor2_symmetric< T, Dim, i, j, axis >::d_one_sided_Tensor2_symmetric ( const Tensor2_symmetric< 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, char j, int axis>
promote<T, double>::V FTensor::d_one_sided_Tensor2_symmetric< T, Dim, i, j, axis >::operator() ( const int  N1,
const int  N2 
) const

Definition at line 16 of file d_one_sided_Tensor2_symmetric.hpp.

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

Member Data Documentation

◆ a

template<class T , int Dim, char i, char j, int axis>
const Tensor2_symmetric<T *, Dim>& FTensor::d_one_sided_Tensor2_symmetric< T, Dim, i, j, axis >::a
private

Definition at line 11 of file d_one_sided_Tensor2_symmetric.hpp.

◆ di

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

Definition at line 12 of file d_one_sided_Tensor2_symmetric.hpp.

◆ dj

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

Definition at line 12 of file d_one_sided_Tensor2_symmetric.hpp.

◆ dk

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

Definition at line 12 of file d_one_sided_Tensor2_symmetric.hpp.

◆ dx

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

Definition at line 13 of file d_one_sided_Tensor2_symmetric.hpp.

◆ dy

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

Definition at line 13 of file d_one_sided_Tensor2_symmetric.hpp.

◆ dz

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

Definition at line 13 of file d_one_sided_Tensor2_symmetric.hpp.


The documentation for this class was generated from the following file: