akreon-linalg
Fixed-size linear algebra and numerical methods in C++26.
Loading...
Searching...
No Matches
numerical_config.hpp
Go to the documentation of this file.
1/*
2 * Copyright © 2025-2026 Akreon LLC
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6#pragma once
9namespace config {
13template <linalg::Real T>
15 std::size_t steps{64};
16 T tol{1e-8};
17 T floor_eps{1e-10};
18};
19
20} // namespace config
21namespace linalg {
22
26enum struct NumericalEvent : uint8_t {
27 NONE = 0,
28
29 // detection / observation
35
36 // failure
39};
40
48inline constexpr bool is_fatal_event(NumericalEvent event) {
51}
52
53} // namespace linalg
constexpr std::size_t mat_rows_v
Registered compile-time row count after cv/ref normalization.
constexpr bool is_fatal_event(NumericalEvent event)
is_fatal_event
NumericalEvent
NumericalEvent.
Configuration for generic numerical factorizations.
T tol
tolerance of of solution
std::size_t steps
total number of iter
T floor_eps
machine precision (lower bounds)