MGIS
Loading...
Searching...
No Matches
FixedSizeView.hxx File Reference

Classes

struct  mgis::function::FixedSizeView< FunctionType, N >
 an evaluator returning the values of a function view as a fixed size span or a scalar More...
 
struct  mgis::function::LightweightViewTraits< FixedSizeView< FunctionType, N > >
 partial specialisation More...
 

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.
 

Functions

template<size_type N, typename FunctionType >
requires ( (N > 0) && (N != dynamic_extent) && // (FunctionConcept<std::decay_t<FunctionType>>)&& // (!std::is_rvalue_reference_v<FunctionType>))
constexpr auto mgis::function::view (FunctionType &)
 convert a function to a immutable view
 
template<FunctionConcept FunctionType, size_type N>
constexpr decltype(automgis::function::getSpace (const FixedSizeView< FunctionType, N > &)
 
template<FunctionConcept FunctionType, size_type N>
constexpr bool mgis::function::check (AbstractErrorHandler &, const FixedSizeView< FunctionType, N > &)
 perform consistency checks
 
template<FunctionConcept FunctionType, size_type N>
constexpr size_type mgis::function::getNumberOfComponents (const FixedSizeView< FunctionType, N > &) noexcept
 

Detailed Description

Author
Thomas Helfer
Date
07/05/2025

Function Documentation

◆ getNumberOfComponents()

template<FunctionConcept FunctionType, size_type N>
constexpr size_type mgis::function::getNumberOfComponents ( const FixedSizeView< FunctionType, N > &  v)
constexprnoexcept
Returns
the number of components

◆ view()

template<size_type N, typename FunctionType >
requires ( (N > 0) && (N != dynamic_extent) && // (FunctionConcept<std::decay_t<FunctionType>>)&& // (!std::is_rvalue_reference_v<FunctionType>))
constexpr auto mgis::function::view ( FunctionType f)
constexpr

convert a function to a immutable view

Parameters
[in]ffunction