MGIS
Loading...
Searching...
No Matches
Algorithms.hxx File Reference
#include <concepts>
#include <optional>
#include <execution>
#include "MGIS/Config.hxx"
#include "MGIS/AbstractErrorHandler.hxx"
#include "MGIS/Function/SpaceConcept.hxx"
#include "MGIS/Function/EvaluatorConcept.hxx"
#include "MGIS/Function/FunctionConcept.hxx"
#include "MGIS/Function/Algorithms.ixx"

Namespaces

namespace  mgis
 the namespace mgis encloses all the MGIS project.
 

Functions

template<typename FunctionType , EvaluatorConcept EvaluatorType>
requires ( ((LinearElementSpaceConcept<evaluator_space<EvaluatorType>>) || (LinearQuadratureSpaceConcept<evaluator_space<EvaluatorType>>)) && std::same_as<function_space<FunctionType>, evaluator_space<EvaluatorType>>)
constexpr bool mgis::function::assign (AbstractErrorHandler &, FunctionType &, const EvaluatorType)
 assign the evaluator to a function
 
template<EvaluatorConcept EvaluatorType, typename OperatorType >
requires (LinearElementSpaceConcept<evaluator_space<EvaluatorType>>)
constexpr std::optional< realmgis::function::scalar_reduce (AbstractErrorHandler &, const EvaluatorType, const OperatorType, const real)
 assign the evaluator to a function
 

Detailed Description

Author
Thomas Helfer
Date
23/04/2025

Function Documentation

◆ assign()

template<typename FunctionType , EvaluatorConcept EvaluatorType>
requires ( ((LinearElementSpaceConcept<evaluator_space<EvaluatorType>>) || (LinearQuadratureSpaceConcept<evaluator_space<EvaluatorType>>)) && std::same_as<function_space<FunctionType>, evaluator_space<EvaluatorType>>)
constexpr bool mgis::function::assign ( AbstractErrorHandler ctx,
FunctionType &  f,
const EvaluatorType  e 
)
constexpr

assign the evaluator to a function

Parameters
[in]ctxexecution context
[in]lhsleft hand side
[in]eright hand side

◆ scalar_reduce()

template<EvaluatorConcept EvaluatorType, typename OperatorType >
requires (LinearElementSpaceConcept<evaluator_space<EvaluatorType>>)
constexpr std::optional< real > mgis::function::scalar_reduce ( AbstractErrorHandler ctx,
const EvaluatorType  e,
const OperatorType  op,
const real  initial_value 
)
constexpr

assign the evaluator to a function

Parameters
[in]ctxexecution context
[in]eevaluator reduced.
[in]opreduction operator.
[in]initial_valueinitial value.