MGIS 3.1.0
Loading...
Searching...
No Matches
TensorialFunction.ixx File Reference

File which contains the implementation of the TensorialFunction class declared in MGIS/Function/TFEL/TensorialFunction.hxx. More...

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.

Functions

template<FunctionalSpaceConcept Space, TensorConcept TensorType>
constexpr decltype(auto) mgis::function::getSpace (const TensorialFunction< Space, TensorType > &)
 return the underlying space
template<FunctionalSpaceConcept Space, TensorConcept TensorType>
constexpr auto mgis::function::view (TensorialFunction< Space, TensorType > &)
 convert a tensorial function to a mutable view
template<FunctionalSpaceConcept Space, TensorConcept TensorType>
constexpr auto mgis::function::view (const TensorialFunction< Space, TensorType > &)
 convert a tensorial function to a read-only view
template<FunctionalSpaceConcept Space, TensorConcept TensorType>
constexpr mgis::size_type mgis::function::getNumberOfComponents (const TensorialFunction< Space, TensorType > &) MGIS_NOEXCEPT
 return the number of components

Detailed Description

File which contains the implementation of the TensorialFunction class declared in MGIS/Function/TFEL/TensorialFunction.hxx.

Author
Thomas Helfer
Date
28/08/2025

Function Documentation

◆ getNumberOfComponents()

template<FunctionalSpaceConcept Space, TensorConcept TensorType>
mgis::size_type mgis::function::getNumberOfComponents ( const TensorialFunction< Space, TensorType > & f)
constexpr

return the number of components

Template Parameters
Spacetype of the functional space
TensorTypetype of the tensorial objects returned by the function
Parameters
[in]ftensorial function
Returns
the number of components of the function, which is the number of components of the tensorial type

◆ getSpace()

template<FunctionalSpaceConcept Space, TensorConcept TensorType>
decltype(auto) mgis::function::getSpace ( const TensorialFunction< Space, TensorType > & f)
constexpr

return the underlying space

Template Parameters
Spacetype of the functional space
TensorTypetype of the tensorial objects returned by the function
Parameters
[in]ftensorial function
Returns
the space on which the function is defined

◆ view() [1/2]

template<FunctionalSpaceConcept Space, TensorConcept TensorType>
auto mgis::function::view ( const TensorialFunction< Space, TensorType > & f)
constexpr

convert a tensorial function to a read-only view

Template Parameters
Spacetype of the functional space
TensorTypetype of the tensorial objects returned by the function
Parameters
[in]ftensorial function
Returns
a read-only view of the values of the function

◆ view() [2/2]

template<FunctionalSpaceConcept Space, TensorConcept TensorType>
auto mgis::function::view ( TensorialFunction< Space, TensorType > & f)
constexpr

convert a tensorial function to a mutable view

Template Parameters
Spacetype of the functional space
TensorTypetype of the tensorial objects returned by the function
Parameters
[in]ftensorial function
Returns
a mutable view of the values of the function