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

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

#include <utility>

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.

Functions

template<FunctionConcept FunctionType, TensorConcept TensorType>
constexpr decltype(auto) mgis::function::getSpace (const TensorView< FunctionType, TensorType > &)
 return the underlying space
template<FunctionConcept FunctionType, TensorConcept TensorType>
constexpr bool mgis::function::check (AbstractErrorHandler &, const TensorView< FunctionType, TensorType > &)
 perform consistency checks
template<FunctionConcept FunctionType, TensorConcept TensorType>
constexpr size_type mgis::function::getNumberOfComponents (const TensorView< FunctionType, TensorType > &) MGIS_NOEXCEPT
 return the number of components

Detailed Description

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

Author
Thomas Helfer
Date
10/05/2025

Function Documentation

◆ check()

template<FunctionConcept FunctionType, TensorConcept TensorType>
bool mgis::function::check ( AbstractErrorHandler & eh,
const TensorView< FunctionType, TensorType > & v )
nodiscardconstexpr

perform consistency checks

Template Parameters
FunctionTypetype of the underlying function
TensorTypetype of the tensorial objects returned by the view
Parameters
[in]eherror handler used to report the errors
[in]vtensor view
Returns
true if the values returned by the view are valid

◆ getNumberOfComponents()

template<FunctionConcept FunctionType, TensorConcept TensorType>
size_type mgis::function::getNumberOfComponents ( const TensorView< FunctionType, TensorType > & v)
nodiscardconstexpr

return the number of components

Template Parameters
FunctionTypetype of the underlying function
TensorTypetype of the tensorial objects returned by the view
Parameters
[in]vtensor view
Returns
the number of components of the view, which is the number of components of the tensorial type

◆ getSpace()

template<FunctionConcept FunctionType, TensorConcept TensorType>
decltype(auto) mgis::function::getSpace ( const TensorView< FunctionType, TensorType > & t)
nodiscardconstexpr

return the underlying space

Template Parameters
FunctionTypetype of the underlying function
TensorTypetype of the tensorial objects returned by the view
Parameters
[in]vtensor view
Returns
the space on which the view is defined