v0.13.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
PlasticOps.hpp, contact.cpp, eigen_elastic.cpp, elasticity.cpp, free_surface.cpp, matrix_function.cpp, mortar_contact_thermal.cpp, nonlinear_elastic.cpp, plastic.cpp, plate.cpp, simple_contact_thermal.cpp, and thermo_plastic.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

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  };
FTensor::Index< 'i', SPACE_DIM > i
FTensor::Index< 'j', 3 > j
const double T

◆ 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
constexpr

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  };
static Number< 1 > N1
static Number< 0 > N0
constexpr T operator()(const int N1, const int N2) const

◆ 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
constexpr

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
constexpr

Definition at line 51 of file Kronecker_Delta.hpp.

51  {
52  return (N1 == N2) ? T(1) : T(0);
53  }
static Number< 2 > N2

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