v0.14.0
Public Member Functions | List of all members
FTensor::Kronecker_Delta_symmetric< T > Class Template Reference

Kronecker Delta class symmetric. More...

#include <src/ftensor/src/FTensor/Kronecker_Delta.hpp>

Public Member Functions

constexpr T operator() (const int N1, const int N2) const
 
template<char i, char j, int Dim>
Tensor2_symmetric_Expr< Kronecker_Delta_symmetric< T >, T, Dim, i, joperator() (const Index< i, Dim > &, const Index< j, Dim > &) const
 
template<char i, int Dim0>
constexpr auto operator() (const Index< i, Dim0 > &, const int &N1) const
 
template<char j, int Dim1>
constexpr auto operator() (const int &N0, const Index< j, Dim1 > &) const
 

Detailed Description

template<class T = int>
class FTensor::Kronecker_Delta_symmetric< T >

Kronecker Delta class symmetric.

Template Parameters
int
Examples
ADOLCPlasticityMaterialModels.hpp, eigen_elastic.cpp, elasticity.cpp, EshelbianOperators.cpp, free_surface.cpp, matrix_function.cpp, mortar_contact_thermal.cpp, plastic.cpp, PlasticOps.hpp, PlasticOpsGeneric.hpp, plate.cpp, seepage.cpp, simple_contact_thermal.cpp, and thermo_elastic.cpp.

Definition at line 49 of file Kronecker_Delta.hpp.

Member Function Documentation

◆ operator()() [1/4]

template<class T = int>
template<char i, char j, int Dim>
Tensor2_symmetric_Expr<Kronecker_Delta_symmetric<T>, T, Dim, i, j> FTensor::Kronecker_Delta_symmetric< T >::operator() ( const Index< i, Dim > &  ,
const Index< j, Dim > &   
) const
inline

Definition at line 57 of file Kronecker_Delta.hpp.

57  {
58  return Tensor2_symmetric_Expr<Kronecker_Delta_symmetric<T>, T, Dim, i, j>(*this);
59  };

◆ operator()() [2/4]

template<class T = int>
template<char i, int Dim0>
constexpr auto FTensor::Kronecker_Delta_symmetric< T >::operator() ( const Index< i, Dim0 > &  ,
const int &  N1 
) const
inlineconstexpr

Definition at line 62 of file Kronecker_Delta.hpp.

62  {
63  auto TensorExpr = [this, N1](const int &N0) {
64  return this->operator()(N0, N1);
65  };
67  };

◆ operator()() [3/4]

template<class T = int>
template<char j, int Dim1>
constexpr auto FTensor::Kronecker_Delta_symmetric< T >::operator() ( const int &  N0,
const Index< j, Dim1 > &   
) const
inlineconstexpr

Definition at line 70 of file Kronecker_Delta.hpp.

70  {
71  auto TensorExpr = [this, N0](const int &N1) {
72  return this->operator()(N0, N1);
73  };
74  return Tensor1_Expr<decltype(TensorExpr), T, Dim1, j>{TensorExpr};
75  };

◆ operator()() [4/4]

template<class T = int>
constexpr T FTensor::Kronecker_Delta_symmetric< T >::operator() ( const int  N1,
const int  N2 
) const
inlineconstexpr

Definition at line 51 of file Kronecker_Delta.hpp.

51  {
52  return (N1 == N2) ? T(1) : T(0);
53  }

The documentation for this class was generated from the following file:
i
FTensor::Index< 'i', SPACE_DIM > i
Definition: hcurl_divergence_operator_2d.cpp:27
Tensor1_Expr
Definition: single.cpp:11
j
FTensor::Index< 'j', 3 > j
Definition: matrix_function.cpp:19
FTensor::Kronecker_Delta_symmetric::operator()
constexpr T operator()(const int N1, const int N2) const
Definition: Kronecker_Delta.hpp:51