v0.14.0
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 
)
inline

Definition at line 23 of file d_one_sided_Tensor2_symmetric.hpp.

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

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
inline

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:
FTensor::d_one_sided_Tensor2_symmetric::dy
const double dy
Definition: d_one_sided_Tensor2_symmetric.hpp:13
A
constexpr AssemblyType A
Definition: operators_tests.cpp:30
FTensor::d_one_sided_Tensor2_symmetric::dk
const int dk
Definition: d_one_sided_Tensor2_symmetric.hpp:12
FTensor::d_one_sided_Tensor2_symmetric::di
const int di
Definition: d_one_sided_Tensor2_symmetric.hpp:12
FTensor::d_one_sided_Tensor2_symmetric::a
const Tensor2_symmetric< T *, Dim > & a
Definition: d_one_sided_Tensor2_symmetric.hpp:11
FTensor::d_one_sided_Tensor2_symmetric::dj
const int dj
Definition: d_one_sided_Tensor2_symmetric.hpp:12
FTensor::d_one_sided_Tensor2_symmetric::dz
const double dz
Definition: d_one_sided_Tensor2_symmetric.hpp:13
FTensor::d_one_sided_Tensor2_symmetric::dx
const double dx
Definition: d_one_sided_Tensor2_symmetric.hpp:13