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

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

Collaboration diagram for EigenMatrix::SecondMatrixDirectiveImpl< E, C >:
[legend]

Public Types

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

Public Member Functions

 SecondMatrixDirectiveImpl (E &e)
 
template<int a, int i, int j, int k, int l, int m, int n>
term1 () const
 
template<int a, int i, int j, int k, int l, int m, int n>
term2 () const
 
template<int a, int i, int j, int k, int l, int m, int n>
term3 () const
 
template<int a, int i, int j, int k, int l, int m, int n>
term () const
 
template<int nb, int i, int j, int k, int l, int m, int n>
eval (const Number< nb > &, const Number< i > &, const Number< j > &, const Number< k > &, const Number< l > &, const Number< m > &, const Number< n > &) const
 
template<int i, int j, int k, int l, int m, int n>
eval (const Number< 1 > &, const Number< i > &, const Number< j > &, const Number< k > &, const Number< l > &, const Number< m > &, const Number< n > &) const
 

Public Attributes

Fdd4MImpl< E, C > r
 
Ee
 

Detailed Description

template<typename E, typename C>
struct EigenMatrix::SecondMatrixDirectiveImpl< E, C >

Definition at line 416 of file MatrixFunctionTemplate.hpp.

Member Typedef Documentation

◆ Fun

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

Definition at line 419 of file MatrixFunctionTemplate.hpp.

◆ Number

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

Definition at line 423 of file MatrixFunctionTemplate.hpp.

◆ NumberDim

template<typename E , typename C >
using EigenMatrix::SecondMatrixDirectiveImpl< E, C >::NumberDim = typename E::NumberDim

Definition at line 421 of file MatrixFunctionTemplate.hpp.

◆ Val

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

Definition at line 417 of file MatrixFunctionTemplate.hpp.

◆ Vec

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

Definition at line 418 of file MatrixFunctionTemplate.hpp.

Constructor & Destructor Documentation

◆ SecondMatrixDirectiveImpl()

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

Member Function Documentation

◆ eval() [1/2]

template<typename E , typename C >
template<int i, int j, int k, int l, int m, int n>
C EigenMatrix::SecondMatrixDirectiveImpl< E, C >::eval ( const Number< 1 > &  ,
const Number< i > &  ,
const Number< j > &  ,
const Number< k > &  ,
const Number< l > &  ,
const Number< m > &  ,
const Number< n > &   
) const
inline

Definition at line 482 of file MatrixFunctionTemplate.hpp.

484 {
485 return term<0, i, j, k, l, m, n>();
486 }

◆ eval() [2/2]

template<typename E , typename C >
template<int nb, int i, int j, int k, int l, int m, int n>
C EigenMatrix::SecondMatrixDirectiveImpl< E, C >::eval ( const Number< nb > &  ,
const Number< i > &  ,
const Number< j > &  ,
const Number< k > &  ,
const Number< l > &  ,
const Number< m > &  ,
const Number< n > &   
) const
inline

Definition at line 470 of file MatrixFunctionTemplate.hpp.

472 {
473 return term<nb - 1, i, j, k, l, m, n>()
474
475 +
476
477 eval(Number<nb - 1>(), Number<i>(), Number<j>(), Number<k>(),
478 Number<l>(), Number<m>(), Number<n>());
479 }
FTensor::Index< 'i', SPACE_DIM > i
const double n
refractive index of diffusive medium
FTensor::Index< 'l', 3 > l
FTensor::Index< 'j', 3 > j
FTensor::Index< 'k', 3 > k
FTensor::Index< 'm', 3 > m
C eval(const Number< nb > &, const Number< i > &, const Number< j > &, const Number< k > &, const Number< l > &, const Number< m > &, const Number< n > &) const

◆ term()

template<typename E , typename C >
template<int a, int i, int j, int k, int l, int m, int n>
C EigenMatrix::SecondMatrixDirectiveImpl< E, C >::term ( ) const
inline

Definition at line 448 of file MatrixFunctionTemplate.hpp.

448 {
449
450 return
451
452 (term1<a, i, j, k, l, m, n>() + term2<a, i, j, k, l, m, n>() +
453 term3<a, i, j, k, l, m, n>()) *
454 0.5
455
456 +
457
458 (e.aMM[a][a](Number<i>(), Number<j>(), Number<k>(), Number<l>()) *
459 e.aM[a](Number<m>(), Number<n>())) *
460 e.ddfVal(a)
461
462 +
463
464 r.eval(typename E::NumberDim(), Number<a>(), Number<i>(), Number<j>(),
465 Number<k>(), Number<l>(), Number<m>(), Number<n>()) *
466 0.25;
467 }
constexpr double a

◆ term1()

template<typename E , typename C >
template<int a, int i, int j, int k, int l, int m, int n>
C EigenMatrix::SecondMatrixDirectiveImpl< E, C >::term1 ( ) const
inline

Definition at line 430 of file MatrixFunctionTemplate.hpp.

430 {
431 return e.d2MType0[a][get_sym_index(Number<k>(), Number<l>(), NumberDim())](
432 Number<i>(), Number<j>(), Number<m>(), Number<n>());
433 };
auto get_sym_index(const Number< N1 > &, const Number< N2 > &, const Number< Dim > &)

◆ term2()

template<typename E , typename C >
template<int a, int i, int j, int k, int l, int m, int n>
C EigenMatrix::SecondMatrixDirectiveImpl< E, C >::term2 ( ) const
inline

Definition at line 436 of file MatrixFunctionTemplate.hpp.

436 {
437 return e.d2MType0[a][get_sym_index(Number<i>(), Number<j>(), NumberDim())](
438 Number<k>(), Number<l>(), Number<m>(), Number<n>());
439 }

◆ term3()

template<typename E , typename C >
template<int a, int i, int j, int k, int l, int m, int n>
C EigenMatrix::SecondMatrixDirectiveImpl< E, C >::term3 ( ) const
inline

Definition at line 442 of file MatrixFunctionTemplate.hpp.

442 {
443 return e.d2MType0[a][get_sym_index(Number<n>(), Number<m>(), NumberDim())](
444 Number<i>(), Number<j>(), Number<k>(), Number<l>());
445 }

Member Data Documentation

◆ e

template<typename E , typename C >
E& EigenMatrix::SecondMatrixDirectiveImpl< E, C >::e

Definition at line 427 of file MatrixFunctionTemplate.hpp.

◆ r

template<typename E , typename C >
Fdd4MImpl<E, C> EigenMatrix::SecondMatrixDirectiveImpl< E, C >::r

Definition at line 426 of file MatrixFunctionTemplate.hpp.


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