v0.16.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
EigenMatrix::d2MImpl< E, C, G > Struct Template Reference

#include "src/ftensor/src/MatrixFunctionTemplate.hpp"

Inheritance diagram for EigenMatrix::d2MImpl< E, C, G >:
[legend]
Collaboration diagram for EigenMatrix::d2MImpl< E, C, G >:
[legend]

Public Types

using Val = typename E::Val
 
using Vec = typename E::Vec
 
using Fun = typename E::Fun
 
template<int N>
using Number = FTensor::Number< N >
 

Public Member Functions

 d2MImpl (E &e)
 
template<int b, int a>
term (const int i, const int j, const int k, const int l) const
 
template<int nb, int a>
eval (const Number< nb > &, const Number< a > &, const int i, const int j, const int k, const int l) const
 
template<int a>
eval (const Number< 1 > &, const Number< a > &, const int i, const int j, const int k, const int l) const
 

Public Attributes

G g
 
Ee
 

Detailed Description

template<typename E, typename C, typename G>
struct EigenMatrix::d2MImpl< E, C, G >

Definition at line 130 of file MatrixFunctionTemplate.hpp.

Member Typedef Documentation

◆ Fun

template<typename E , typename C , typename G >
using EigenMatrix::d2MImpl< E, C, G >::Fun = typename E::Fun

Definition at line 133 of file MatrixFunctionTemplate.hpp.

◆ Number

template<typename E , typename C , typename G >
template<int N>
using EigenMatrix::d2MImpl< E, C, G >::Number = FTensor::Number<N>

Definition at line 135 of file MatrixFunctionTemplate.hpp.

◆ Val

template<typename E , typename C , typename G >
using EigenMatrix::d2MImpl< E, C, G >::Val = typename E::Val

Definition at line 131 of file MatrixFunctionTemplate.hpp.

◆ Vec

template<typename E , typename C , typename G >
using EigenMatrix::d2MImpl< E, C, G >::Vec = typename E::Vec

Definition at line 132 of file MatrixFunctionTemplate.hpp.

Constructor & Destructor Documentation

◆ d2MImpl()

template<typename E , typename C , typename G >
EigenMatrix::d2MImpl< E, C, G >::d2MImpl ( E e)
inline

Member Function Documentation

◆ eval() [1/2]

template<typename E , typename C , typename G >
template<int a>
C EigenMatrix::d2MImpl< E, C, G >::eval ( const Number< 1 > &  ,
const Number< a > &  ,
const int  i,
const int  j,
const int  k,
const int  l 
) const
inline

Definition at line 157 of file MatrixFunctionTemplate.hpp.

158 {
159 return term<0, a>(i, j, k, l);
160 }
FTensor::Index< 'i', SPACE_DIM > i
FTensor::Index< 'l', 3 > l
FTensor::Index< 'j', 3 > j
FTensor::Index< 'k', 3 > k

◆ eval() [2/2]

template<typename E , typename C , typename G >
template<int nb, int a>
C EigenMatrix::d2MImpl< E, C, G >::eval ( const Number< nb > &  ,
const Number< a > &  ,
const int  i,
const int  j,
const int  k,
const int  l 
) const
inline

Definition at line 150 of file MatrixFunctionTemplate.hpp.

151 {
152 return term<nb - 1, a>(i, j, k, l) +
153 eval(Number<nb - 1>(), Number<a>(), i, j, k, l);
154 }
constexpr double a
C term(const int i, const int j, const int k, const int l) const
C eval(const Number< nb > &, const Number< a > &, const int i, const int j, const int k, const int l) const

◆ term()

template<typename E , typename C , typename G >
template<int b, int a>
C EigenMatrix::d2MImpl< E, C, G >::term ( const int  i,
const int  j,
const int  k,
const int  l 
) const
inline

Definition at line 141 of file MatrixFunctionTemplate.hpp.

141 {
142 if constexpr (a != b) {
143 return g.get(Number<a>(), Number<b>(), i, j, k, l,
144 typename E::NumberNb());
145 }
146 return 0;
147 }

Member Data Documentation

◆ e

template<typename E , typename C , typename G >
E& EigenMatrix::d2MImpl< E, C, G >::e

Definition at line 138 of file MatrixFunctionTemplate.hpp.

◆ g

template<typename E , typename C , typename G >
G EigenMatrix::d2MImpl< E, C, G >::g

Definition at line 137 of file MatrixFunctionTemplate.hpp.


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