version 0.4
defaultfunctions.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2021-2024 The Ikarus Developers mueller@ibb.uni-stuttgart.de
2// SPDX-License-Identifier: LGPL-3.0-or-later
3
9#pragma once
11
12namespace Ikarus::utils {
26 template <typename A, typename B>
27 constexpr auto operator()(A&& a, B&& b) const {
28 return a / b;
29 }
30 };
31
45 template <typename A, typename B>
46 constexpr void operator()(A&& a, B&& b) const {
47 using Ikarus::operator+=;
48 a += b;
49 }
50 };
51
59 struct LoadDefault {};
60
61} // namespace Ikarus::utils
Helper for the autodiff library.
Definition: algorithms.hh:17
Default functor for solving operations.
Definition: defaultfunctions.hh:25
constexpr auto operator()(A &&a, B &&b) const
Definition: defaultfunctions.hh:27
Default functor for updating operations.
Definition: defaultfunctions.hh:44
constexpr void operator()(A &&a, B &&b) const
Definition: defaultfunctions.hh:46
Empty struct representing a default load operation.
Definition: defaultfunctions.hh:59