Implementation of the algorithms which can be applied to the functions and the evaluators of the MGIS/Function library.
More...
|
template<size_type N, typename InputIterator, typename OutputIterator>
requires (N > 0) |
| constexpr void | mgis::function::algorithm::copy (const InputIterator p, const InputIterator pe, const OutputIterator po) |
| | copies N values from a range of input iterators to a range of output iterators
|
| constexpr void | mgis::function::internals::assign_value (std::span< real >, const auto &) |
| | assigns to a span of dynamic size the values of any container which can be iterated over
|
|
constexpr void | mgis::function::internals::assign_value (std::span< real >, const std::span< const real >) |
| | assigns to a span of dynamic size the values of a constant span
|
|
constexpr void | mgis::function::internals::assign_value (std::span< real >, const std::span< real >) |
| | assigns to a span of dynamic size the values of a mutable span
|
|
constexpr void | mgis::function::internals::assign_value (real &, const std::span< real > &) |
| | assigns to a scalar value the first value of a mutable span
|
|
constexpr void | mgis::function::internals::assign_value (real &, const std::span< const real > &) |
| | assigns to a scalar value the first value of a constant span
|
|
constexpr void | mgis::function::internals::assign_value (real &, const std::span< real, 1u > &) |
| | assigns to a scalar value the value of a mutable span of one element
|
|
constexpr void | mgis::function::internals::assign_value (real &, const std::span< const real, 1u > &) |
| | assigns to a scalar value the value of a constant span of one element
|
|
constexpr void | mgis::function::internals::assign_value (real &, const std::array< real, 1u > &) |
| | assigns to a scalar value the value of an array of one element
|
|
constexpr void | mgis::function::internals::assign_value (std::array< real, 1u > &, const real) |
| | assigns a scalar value to the unique element of an array
|
|
constexpr void | mgis::function::internals::assign_value (std::array< real, 1u > &, const std::array< real, 1u >) |
| | assigns the value of an array of one element to an array of one element
|
|
constexpr void | mgis::function::internals::assign_value (std::array< real, 1u > &, const std::span< real >) |
| | assigns the first value of a mutable span to an array of one element
|
|
constexpr void | mgis::function::internals::assign_value (std::array< real, 1u > &, const std::span< const real >) |
| | assigns the first value of a constant span to an array of one element
|
|
constexpr void | mgis::function::internals::assign_value (std::array< real, 1u > &, const std::span< real, 1u >) |
| | assigns the value of a mutable one element span to an array of one element
|
|
constexpr void | mgis::function::internals::assign_value (std::array< real, 1u > &, const std::span< const real, 1u >) |
| | assigns the value of a constant span of one element to an array of one element
|
|
constexpr void | mgis::function::internals::assign_value (std::span< real, 1u >, const real) |
| | assigns a scalar value to the unique element of a span
|
| constexpr void | mgis::function::internals::assign_value (std::span< real >, const real) |
| | assigns a scalar value to the first element of a span of dynamic size
|
|
constexpr void | mgis::function::internals::assign_value (std::span< real >, const std::span< real, 1u >) |
| | assigns the value of a mutable span of one element to the first element of a span of dynamic size
|
|
constexpr void | mgis::function::internals::assign_value (std::span< real >, const std::span< const real, 1u >) |
| | assigns the value of a constant span of one element to the first element of a span of dynamic size
|
|
constexpr void | mgis::function::internals::assign_value (std::span< real, 1u >, const std::span< real >) |
| | assigns the first value of a mutable span to a span of one element
|
|
constexpr void | mgis::function::internals::assign_value (std::span< real, 1u >, const std::span< const real >) |
| | assigns the first value of a constant span to a span of one element
|
|
constexpr void | mgis::function::internals::assign_value (std::span< real, 1u >, const std::span< real, 1u >) |
| | assigns the value of a mutable span of one element to a span of one element
|
|
constexpr void | mgis::function::internals::assign_value (std::span< real, 1u >, const std::span< const real, 1u >) |
| | assigns the value of a constant span of one element to a span of one element
|
|
constexpr void | mgis::function::internals::assign_value (std::span< real, 1u >, const std::array< real, 1u > &) |
| | assigns the value of an array of one element to a span of one element
|
template<typename FunctionType, EvaluatorConcept EvaluatorType>
requires ( (LinearElementSpaceConcept<std::decay_t<decltype(getSpace(f))>>)&&( !hasElementWorkspace<std::decay_t<decltype(getSpace(f))>>)) |
| constexpr void | mgis::function::internals::assign_sequential_scalar_impl (FunctionType &f, const EvaluatorType &e) |
| | assigns to a function the scalar values computed by an evaluator, the evaluation being sequential
|
template<typename FunctionType, EvaluatorConcept EvaluatorType>
requires ( (LinearElementSpaceConcept<std::decay_t<decltype(getSpace(f))>>)&&( hasElementWorkspace<std::decay_t<decltype(getSpace(f))>>)) |
| constexpr void | mgis::function::internals::assign_sequential_scalar_impl (FunctionType &f, const EvaluatorType &e) |
| | assigns to a function the scalar values computed by an evaluator, the evaluation being sequential
|
template<typename FunctionType, EvaluatorConcept EvaluatorType>
requires ( (LinearElementSpaceConcept<std::decay_t<decltype(getSpace(f))>>)&&( !hasElementWorkspace<std::decay_t<decltype(getSpace(f))>>)) |
| constexpr void | mgis::function::internals::assign_sequential_impl (FunctionType &f, const EvaluatorType &e) |
| | assigns to a function the values computed by an evaluator, the evaluation being sequential
|
template<typename FunctionType, EvaluatorConcept EvaluatorType>
requires ( (LinearElementSpaceConcept<std::decay_t<decltype(getSpace(f))>>)&&( hasElementWorkspace<std::decay_t<decltype(getSpace(f))>>)) |
| constexpr void | mgis::function::internals::assign_sequential_impl (FunctionType &f, const EvaluatorType &e) |
| | assigns to a function the values computed by an evaluator, the evaluation being sequential
|
template<typename FunctionType, EvaluatorConcept EvaluatorType>
requires ( (LinearElementSpaceConcept<evaluator_space<EvaluatorType>>) && same_decay_type<function_space<FunctionType>, evaluator_space<EvaluatorType>>) |
| constexpr void | mgis::function::internals::assign_sequential (FunctionType &f, const EvaluatorType e) |
| | assigns to a function the values computed by an evaluator, the evaluation being sequential
|
template<EvaluatorConcept EvaluatorType, typename OperatorType>
requires (LinearElementSpaceConcept<evaluator_space<EvaluatorType>>) |
| constexpr real | mgis::function::internals::sequential_scalar_reduce (const EvaluatorType e, const OperatorType op, const real initial_value) |
| | reduces the values computed by an evaluator to a single scalar value, the evaluation being sequential
|
template<ViewableFunctionArgumentConcept FunctionType, EvaluatorConcept EvaluatorType>
requires ( (internals::isEvaluatorAssignableToFunction< EvaluatorType, std::decay_t<FunctionType>>)&& // (LinearElementSpaceConcept<evaluator_space<EvaluatorType>>)) |
| constexpr bool | mgis::function::assign (AbstractErrorHandler &, FunctionType &&, const EvaluatorType) |
| | assigns the values computed by an evaluator to a function, the evaluation being sequential
|
template<EvaluatorConcept EvaluatorType, typename OperatorType>
requires (LinearElementSpaceConcept<evaluator_space<EvaluatorType>>) |
| constexpr std::optional< real > | mgis::function::scalar_reduce (AbstractErrorHandler &, const EvaluatorType, const OperatorType, const real) |
| | reduces the values computed by a scalar evaluator to a single value using the given reduction operator, the evaluation being sequential
|
Implementation of the algorithms which can be applied to the functions and the evaluators of the MGIS/Function library.
- Author
- Thomas Helfer
- Date
- 29/04/2025
- Copyright
- (C) Copyright Thomas Helfer 2018. Use, modification and distribution are subject to one of the following licences:
- GNU Lesser General Public License (LGPL), Version 3.0. (See accompanying file LGPL-3.0.txt)
- CECILL-C, Version 1.0 (See accompanying files CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt).