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

#include <src/ftensor/src/FTensor/Tensor0/dTensor0.hpp>

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

Public Member Functions

promote< T, double >::V operator() (const int N) const
 
 dTensor0 (const Tensor0< T * > &A, const Tensor1< int, Dim > &D_ijk, const Tensor1< double, Dim > &D_xyz)
 

Private Attributes

const Tensor0< T * > & a
 
const Tensor1< int, Dim > & d_ijk
 
const Tensor1< double, Dim > & d_xyz
 

Detailed Description

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

Definition at line 7 of file dTensor0.hpp.

Constructor & Destructor Documentation

◆ dTensor0()

template<class T , int Dim, char i>
FTensor::dTensor0< T, Dim, i >::dTensor0 ( const Tensor0< T * > &  A,
const Tensor1< int, Dim > &  D_ijk,
const Tensor1< double, Dim > &  D_xyz 
)
inline

Definition at line 18 of file dTensor0.hpp.

20  : a(A), d_ijk(D_ijk), d_xyz(D_xyz)
21  {}

Member Function Documentation

◆ operator()()

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

Definition at line 14 of file dTensor0.hpp.

15  {
16  return (*(&a + d_ijk(N)) - *(&a - d_ijk(N))) * d_xyz(N) * 0.5;
17  }

Member Data Documentation

◆ a

template<class T , int Dim, char i>
const Tensor0<T *>& FTensor::dTensor0< T, Dim, i >::a
private

Definition at line 9 of file dTensor0.hpp.

◆ d_ijk

template<class T , int Dim, char i>
const Tensor1<int, Dim>& FTensor::dTensor0< T, Dim, i >::d_ijk
private

Definition at line 10 of file dTensor0.hpp.

◆ d_xyz

template<class T , int Dim, char i>
const Tensor1<double, Dim>& FTensor::dTensor0< T, Dim, i >::d_xyz
private

Definition at line 11 of file dTensor0.hpp.


The documentation for this class was generated from the following file:
FTensor::dTensor0::d_ijk
const Tensor1< int, Dim > & d_ijk
Definition: dTensor0.hpp:10
A
constexpr AssemblyType A
Definition: operators_tests.cpp:30
FTensor::dTensor0::a
const Tensor0< T * > & a
Definition: dTensor0.hpp:9
N
const int N
Definition: speed_test.cpp:3
FTensor::dTensor0::d_xyz
const Tensor1< double, Dim > & d_xyz
Definition: dTensor0.hpp:11