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

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

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

Public Member Functions

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

Definition at line 7 of file ddTensor0.hpp.

Constructor & Destructor Documentation

◆ ddTensor0()

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

Definition at line 24 of file ddTensor0.hpp.

26  : a(A), d_ijk(D_ijk), d_xyz(D_xyz)
27  {}
const Tensor1< double, Dim > & d_xyz
Definition: ddTensor0.hpp:11
const Tensor1< int, Dim > & d_ijk
Definition: ddTensor0.hpp:10
const Tensor0< T * > & a
Definition: ddTensor0.hpp:9

Member Function Documentation

◆ operator()()

template<class T , int Dim, char i, char j>
promote<T, double>::V FTensor::ddTensor0< T, Dim, i, j >::operator() ( const int  N1,
const int  N2 
) const

Definition at line 14 of file ddTensor0.hpp.

15  {
16  return N1 == N2
17  ? (*(&a + d_ijk(N1)) - 2 * a + *(&a - d_ijk(N1))) * d_xyz(N1)
18  * d_xyz(N1)
19  : (*(&a + d_ijk(N1) + d_ijk(N2)) - *(&a - d_ijk(N1) + d_ijk(N2))
20  - *(&a + d_ijk(N1) - d_ijk(N2))
21  + *(&a - d_ijk(N1) - d_ijk(N2)))
22  * d_xyz(N1) * d_xyz(N2) * 0.25;
23  }
const Tensor1< double, Dim > & d_xyz
Definition: ddTensor0.hpp:11
const Tensor1< int, Dim > & d_ijk
Definition: ddTensor0.hpp:10
const Tensor0< T * > & a
Definition: ddTensor0.hpp:9

Member Data Documentation

◆ a

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

Definition at line 9 of file ddTensor0.hpp.

◆ d_ijk

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

Definition at line 10 of file ddTensor0.hpp.

◆ d_xyz

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

Definition at line 11 of file ddTensor0.hpp.


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