Bertini 2 - C++ Core
Software for Numerical Algebraic Geometry
Loading...
Searching...
No Matches
common/config.hpp
1//This file is part of Bertini 2.
2//
3//bertini2/common/config.hpp is free software: you can redistribute it and/or modify
4//it under the terms of the GNU General Public License as published by
5//the Free Software Foundation, either version 3 of the License, or
6//(at your option) any later version.
7//
8//bertini2/common/config.hpp is distributed in the hope that it will be useful,
9//but WITHOUT ANY WARRANTY; without even the implied warranty of
10//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11//GNU General Public License for more details.
12//
13//You should have received a copy of the GNU General Public License
14//along with tracking/include/bertini2/trackers/config.hpp. If not, see <http://www.gnu.org/licenses/>.
15//
16// Copyright(C) 2015 - 2021 by Bertini2 Development Team
17//
18// See <http://www.gnu.org/licenses/> for a copy of the license,
19// as well as COPYING. Bertini2 is provided with permitted
20// additional terms in the b2/licenses/ directory.
21
22
23// individual authors of this file include:
24// silviana amethyst, university of notre dame, university of wisconsin eau claire
25// Tim Hodges, Colorado State University
26
27#ifndef BERTINI2_COMMON_CONFIG
28#define BERTINI2_COMMON_CONFIG
29
30#pragma once
31
32
33namespace bertini
34{
35
36 // aliases for the types used to contain space and time samples, and random vectors for the endgames.
37 template<typename T> using SampCont = std::deque<Vec<T> >;
38 template<typename T> using TimeCont = std::deque<T>;
39
40 enum class ContStart{
41 Front,
42 Back
43 };
44
45 enum class SuccessCode
46 {
47 NeverStarted = -1,
48 Success = 0,
49 HigherPrecisionNecessary,
50 ReduceStepSize,
51 GoingToInfinity,
52 FailedToConverge,
53 MatrixSolveFailure,
54 MatrixSolveFailureFirstPartOfPrediction,
55 MaxNumStepsTaken,
56 MaxPrecisionReached,
57 MinStepSizeReached,
58 Failure,
59 SingularStartPoint,
60 ExternallyTerminated,
61 MinTrackTimeReached,
62 SecurityMaxNormReached,
63 CycleNumTooHigh,
64
65 };
66
67 using NumErrorT = double;
68} // namespace bertini
69
70#include "bertini2/common/stream_enum.hpp"
71
72
73#endif // include guard
74