v0.14.0
Public Member Functions | Private Attributes | List of all members
FTensor::dTensor2_symmetric< T, Dim01, Dim2, i, j, k > Class Template Reference

#include <src/ftensor/src/FTensor/Tensor2_symmetric/dTensor2_symmetric.hpp>

Collaboration diagram for FTensor::dTensor2_symmetric< T, Dim01, Dim2, i, j, k >:
[legend]

Public Member Functions

promote< T, double >::V operator() (const int N1, const int N2, const int N3) const
 
 dTensor2_symmetric (const Tensor2_symmetric< T *, Dim01 > &A, const Tensor1< int, Dim2 > &D_ijk, const Tensor1< double, Dim2 > &D_xyz)
 

Private Attributes

const Tensor2_symmetric< T *, Dim01 > & a
 
const Tensor1< int, Dim2 > & d_ijk
 
const Tensor1< double, Dim2 > & d_xyz
 

Detailed Description

template<class T, int Dim01, int Dim2, char i, char j, char k>
class FTensor::dTensor2_symmetric< T, Dim01, Dim2, i, j, k >

Definition at line 8 of file dTensor2_symmetric.hpp.

Constructor & Destructor Documentation

◆ dTensor2_symmetric()

template<class T , int Dim01, int Dim2, char i, char j, char k>
FTensor::dTensor2_symmetric< T, Dim01, Dim2, i, j, k >::dTensor2_symmetric ( const Tensor2_symmetric< T *, Dim01 > &  A,
const Tensor1< int, Dim2 > &  D_ijk,
const Tensor1< double, Dim2 > &  D_xyz 
)
inline

Definition at line 21 of file dTensor2_symmetric.hpp.

24  : a(A), d_ijk(D_ijk), d_xyz(D_xyz)
25  {}

Member Function Documentation

◆ operator()()

template<class T , int Dim01, int Dim2, char i, char j, char k>
promote<T, double>::V FTensor::dTensor2_symmetric< T, Dim01, Dim2, i, j, k >::operator() ( const int  N1,
const int  N2,
const int  N3 
) const
inline

Definition at line 16 of file dTensor2_symmetric.hpp.

17  {
18  return (*(a.ptr(N1, N2) + d_ijk(N3)) - *(a.ptr(N1, N2) - d_ijk(N3)))
19  * d_xyz(N3) * 0.5;
20  }

Member Data Documentation

◆ a

template<class T , int Dim01, int Dim2, char i, char j, char k>
const Tensor2_symmetric<T *, Dim01>& FTensor::dTensor2_symmetric< T, Dim01, Dim2, i, j, k >::a
private

Definition at line 10 of file dTensor2_symmetric.hpp.

◆ d_ijk

template<class T , int Dim01, int Dim2, char i, char j, char k>
const Tensor1<int, Dim2>& FTensor::dTensor2_symmetric< T, Dim01, Dim2, i, j, k >::d_ijk
private

Definition at line 11 of file dTensor2_symmetric.hpp.

◆ d_xyz

template<class T , int Dim01, int Dim2, char i, char j, char k>
const Tensor1<double, Dim2>& FTensor::dTensor2_symmetric< T, Dim01, Dim2, i, j, k >::d_xyz
private

Definition at line 12 of file dTensor2_symmetric.hpp.


The documentation for this class was generated from the following file:
FTensor::dTensor2_symmetric::d_ijk
const Tensor1< int, Dim2 > & d_ijk
Definition: dTensor2_symmetric.hpp:11
FTensor::dTensor2_symmetric::d_xyz
const Tensor1< double, Dim2 > & d_xyz
Definition: dTensor2_symmetric.hpp:12
A
constexpr AssemblyType A
Definition: operators_tests.cpp:30
FTensor::dTensor2_symmetric::a
const Tensor2_symmetric< T *, Dim01 > & a
Definition: dTensor2_symmetric.hpp:10