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

Definition at line 31 of file ddTensor1.hpp.

33  : a(A), d_ijk(D_ijk), d_xyz(D_xyz)
34  {}

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
inline

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  }

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:
FTensor::ddTensor1::d_ijk
const Tensor1< int, Dim12 > & d_ijk
Definition: ddTensor1.hpp:13
A
constexpr AssemblyType A
Definition: operators_tests.cpp:30
FTensor::ddTensor1::a
const Tensor1< T *, Dim0 > & a
Definition: ddTensor1.hpp:12
FTensor::ddTensor1::d_xyz
const Tensor1< double, Dim12 > & d_xyz
Definition: ddTensor1.hpp:14