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

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

Collaboration diagram for FTensor::dTensor1< T, Dim0, Dim1, i, j >:
[legend]

Public Member Functions

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

Private Attributes

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

Detailed Description

template<class T, int Dim0, int Dim1, char i, char j>
class FTensor::dTensor1< T, Dim0, Dim1, i, j >

Definition at line 39 of file dTensor1.hpp.

Constructor & Destructor Documentation

◆ dTensor1()

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

Definition at line 51 of file dTensor1.hpp.

53  : a(A), d_ijk(D_ijk), d_xyz(D_xyz)
54  {}
const Tensor1< int, Dim1 > & d_ijk
Definition: dTensor1.hpp:42
const Tensor1< T *, Dim0 > & a
Definition: dTensor1.hpp:41
const Tensor1< double, Dim1 > & d_xyz
Definition: dTensor1.hpp:43

Member Function Documentation

◆ operator()()

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

Definition at line 46 of file dTensor1.hpp.

47  {
48  return (*(a.ptr(N1) + d_ijk(N2)) - *(a.ptr(N1) - d_ijk(N2))) * d_xyz(N2)
49  * 0.5;
50  }
const Tensor1< int, Dim1 > & d_ijk
Definition: dTensor1.hpp:42
const Tensor1< T *, Dim0 > & a
Definition: dTensor1.hpp:41
const Tensor1< double, Dim1 > & d_xyz
Definition: dTensor1.hpp:43

Member Data Documentation

◆ a

template<class T , int Dim0, int Dim1, char i, char j>
const Tensor1<T *, Dim0>& FTensor::dTensor1< T, Dim0, Dim1, i, j >::a
private

Definition at line 41 of file dTensor1.hpp.

◆ d_ijk

template<class T , int Dim0, int Dim1, char i, char j>
const Tensor1<int, Dim1>& FTensor::dTensor1< T, Dim0, Dim1, i, j >::d_ijk
private

Definition at line 42 of file dTensor1.hpp.

◆ d_xyz

template<class T , int Dim0, int Dim1, char i, char j>
const Tensor1<double, Dim1>& FTensor::dTensor1< T, Dim0, Dim1, i, j >::d_xyz
private

Definition at line 43 of file dTensor1.hpp.


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