Bertini 2 - C++ Core
Software for Numerical Algebraic Geometry
Loading...
Searching...
No Matches
blackbox/config.hpp
Go to the documentation of this file.
1//This file is part of Bertini 2.
2//
3//bertini2/blackbox/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/blackbox/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 bertini2/blackbox/config.hpp. If not, see <http://www.gnu.org/licenses/>.
15//
16// Copyright(C) 2017-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// silviana amethyst, university of wisconsin-eau claire
23
29
30#pragma once
31
32namespace bertini{
33 namespace blackbox{
34
35
36namespace type{
37enum class Start{ TotalDegree, MHom, User};
38enum class Tracker{ FixedDouble, FixedMultiple, Adaptive};
39enum class Endgame{ PowerSeries, Cauchy};
40}
41
42
43template<typename T>
44 struct StorageSelector{};
45
46template<>
47 struct StorageSelector<start_system::User>
48 {
49 using ShouldClone = typename std::false_type;
50 // typename algorithm::StorageSelector<StartType>::Storage
51 // using Storage = typename policy::RefToGiven<System, start_system::User>;
52 };
53
54template<>
55 struct StorageSelector<start_system::TotalDegree>
56 {
57 // using Storage = typename policy::CloneGiven<System, start_system::TotalDegree>;
58 // typedef policy::CloneGiven Storage;
59 using ShouldClone = typename std::true_type;
60 // using Storage = typename policy::CloneGiven;
61 };
62
63template<>
64 struct StorageSelector<start_system::MHomogeneous>
65 {
66 using ShouldClone = typename std::true_type;
67 // template < typename T, typename S>
68 // using Storage = typename policy::CloneGiven<T,S>;
69 };
70
71
72 }
73}