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

#include <src/ftensor/src/FTensor/Tensor1/ddTensor1.hpp>

Collaboration diagram for FTensor::ddTensor1< T, Dim0, Dim12, i, j, k >:
[legend]

Public Member Functions

promote< T, double >::V operator() (const int N2, const int N3, const int N1) const
 
 ddTensor1 (const Tensor1< T *, Dim0 > &A, const Tensor1< int, Dim12 > &D_ijk, const Tensor1< double, Dim12 > &D_xyz)
 

Private Attributes

const Tensor1< T *, Dim0 > & a
 
const Tensor1< int, Dim12 > & d_ijk
 
const Tensor1< double, Dim12 > & d_xyz
 

Detailed Description

template<class T, int Dim0, int Dim12, char i, char j, char k>
class FTensor::ddTensor1< T, Dim0, Dim12, i, j, k >

Definition at line 10 of file ddTensor1.hpp.

Constructor & Destructor Documentation

◆ ddTensor1()

template<class T , int Dim0, int Dim12, char i, char j, char k>
FTensor::ddTensor1< T, Dim0, Dim12, i, j, k >::ddTensor1 ( const Tensor1< T *, Dim0 > &  A,
const Tensor1< int, Dim12 > &  D_ijk,
const Tensor1< double, Dim12 > &  D_xyz 
)

Definition at line 31 of file ddTensor1.hpp.

33  : a(A), d_ijk(D_ijk), d_xyz(D_xyz)
34  {}
const Tensor1< T *, Dim0 > & a
Definition: ddTensor1.hpp:12
const Tensor1< double, Dim12 > & d_xyz
Definition: ddTensor1.hpp:14
const Tensor1< int, Dim12 > & d_ijk
Definition: ddTensor1.hpp:13

Member Function Documentation

◆ operator()()

template<class T , int Dim0, int Dim12, char i, char j, char k>
promote<T, double>::V FTensor::ddTensor1< T, Dim0, Dim12, i, j, k >::operator() ( const int  N2,
const int  N3,
const int  N1 
) const

Definition at line 20 of file ddTensor1.hpp.

21  {
22  return N2 == N3 ? (*(a.ptr(N1) + d_ijk(N2)) - 2 * a(N1)
23  + *(a.ptr(N1) - d_ijk(N2)))
24  * d_xyz(N2) * d_xyz(N2)
25  : (*(a.ptr(N1) + d_ijk(N2) + d_ijk(N3))
26  - *(a.ptr(N1) - d_ijk(N2) + d_ijk(N3))
27  - *(a.ptr(N1) + d_ijk(N2) - d_ijk(N3))
28  + *(a.ptr(N1) - d_ijk(N2) - d_ijk(N3)))
29  * d_xyz(N2) * d_xyz(N3) * 0.25;
30  }
const Tensor1< T *, Dim0 > & a
Definition: ddTensor1.hpp:12
const Tensor1< double, Dim12 > & d_xyz
Definition: ddTensor1.hpp:14
const Tensor1< int, Dim12 > & d_ijk
Definition: ddTensor1.hpp:13

Member Data Documentation

◆ a

template<class T , int Dim0, int Dim12, char i, char j, char k>
const Tensor1<T *, Dim0>& FTensor::ddTensor1< T, Dim0, Dim12, i, j, k >::a
private

Definition at line 12 of file ddTensor1.hpp.

◆ d_ijk

template<class T , int Dim0, int Dim12, char i, char j, char k>
const Tensor1<int, Dim12>& FTensor::ddTensor1< T, Dim0, Dim12, i, j, k >::d_ijk
private

Definition at line 13 of file ddTensor1.hpp.

◆ d_xyz

template<class T , int Dim0, int Dim12, char i, char j, char k>
const Tensor1<double, Dim12>& FTensor::ddTensor1< T, Dim0, Dim12, i, j, k >::d_xyz
private

Definition at line 14 of file ddTensor1.hpp.


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