MGIS
Loading...
Searching...
No Matches
Function.ixx File Reference
#include <concepts>
#include <algorithm>
#include "MGIS/Raise.hxx"

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.
 

Functions

constexpr bool mgis::function::has_dynamic_properties (const FunctionDataLayoutDescription &)
 a simple helper function
 
template<LinearFunctionalSpaceConcept Space, FunctionDataLayoutDescription layout, bool is_mutable>
constexpr bool mgis::function::check (AbstractErrorHandler &, const FunctionView< Space, layout, is_mutable > &) noexcept
 a noop function to match the EvaluatorConcept concept
 
template<LinearFunctionalSpaceConcept Space, FunctionDataLayoutDescription layout, bool is_mutable>
constexpr mgis::size_type mgis::function::getNumberOfComponents (const FunctionView< Space, layout, is_mutable > &) noexcept
 
template<LinearFunctionalSpaceConcept Space, size_type N>
constexpr auto mgis::function::view (Function< Space, N > &)
 convert a function to a mutable view
 
template<size_type N, LinearFunctionalSpaceConcept Space, size_type N2>
requires ((N > 0) && (N != dynamic_extent) && (N == N2))
constexpr auto mgis::function::view (Function< Space, N2 > &)
 convert a function to a mutable view
 
template<LinearFunctionalSpaceConcept Space, size_type N>
constexpr auto mgis::function::view (const Function< Space, N > &)
 convert a function to a immutable view
 
template<size_type N, LinearFunctionalSpaceConcept Space, size_type N2>
requires ((N > 0) && (N != dynamic_extent) && (N == N2))
constexpr auto mgis::function::view (const Function< Space, N2 > &)
 convert a function to a immutable view
 
template<LinearFunctionalSpaceConcept Space, FunctionDataLayoutDescription layout, bool is_mutable>
constexpr const automgis::function::getSpace (const FunctionView< Space, layout, is_mutable > &)
 

Detailed Description

Author
Thomas Helfer
Date
10/03/2021

Function Documentation

◆ getNumberOfComponents()

template<LinearFunctionalSpaceConcept Space, FunctionDataLayoutDescription layout, bool is_mutable>
constexpr mgis::size_type mgis::function::getNumberOfComponents ( const FunctionView< Space, layout, is_mutable > &  e)
constexprnoexcept
Returns
the number of components of a view
Parameters
[in]vview

◆ view() [1/4]

template<LinearFunctionalSpaceConcept Space, size_type N>
constexpr auto mgis::function::view ( const Function< Space, N > &  f)
constexpr

convert a function to a immutable view

Parameters
[in]ffunction

◆ view() [2/4]

template<size_type N, LinearFunctionalSpaceConcept Space, size_type N2>
requires ((N > 0) && (N != dynamic_extent) && (N == N2))
constexpr auto mgis::function::view ( const Function< Space, N2 > &  f)
constexpr

convert a function to a immutable view

Parameters
[in]ffunction

◆ view() [3/4]

template<LinearFunctionalSpaceConcept Space, size_type N>
constexpr auto mgis::function::view ( Function< Space, N > &  f)
constexpr

convert a function to a mutable view

Parameters
[in]ffunction

◆ view() [4/4]

template<size_type N, LinearFunctionalSpaceConcept Space, size_type N2>
requires ((N > 0) && (N != dynamic_extent) && (N == N2))
constexpr auto mgis::function::view ( Function< Space, N2 > &  f)
constexpr

convert a function to a mutable view

Parameters
[in]ffunction