/usr/include/libnormaliz/libnormaliz.h is in libnormaliz-dev-common 3.5.1+ds-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | /*
* Normaliz
* Copyright (C) 2007-2014 Winfried Bruns, Bogdan Ichim, Christof Soeger
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* As an exception, when this program is distributed through (i) the App Store
* by Apple Inc.; (ii) the Mac App Store by Apple Inc.; or (iii) Google Play
* by Google Inc., then that store may impose any digital rights management,
* device limits and/or redistribution restrictions that are required by its
* terms of service.
*/
#ifndef LIBNORMALIZ_H_
#define LIBNORMALIZ_H_
#include <iostream>
#include <string>
#include <signal.h>
#include "libnormaliz/version.h"
namespace libnormaliz {
namespace Type {
enum InputType {
integral_closure,
polyhedron,
normalization,
polytope,
rees_algebra,
inequalities,
strict_inequalities,
signs,
strict_signs,
equations,
congruences,
inhom_inequalities,
dehomogenization,
inhom_equations,
inhom_congruences,
lattice_ideal,
grading,
excluded_faces,
lattice,
saturation,
cone,
offset,
vertices,
support_hyperplanes,
cone_and_lattice,
subspace,
open_facets,
projection_coordinates
};
} //end namespace Type
using Type::InputType;
/* converts a string to an InputType
* throws an BadInputException if the string cannot be converted */
InputType to_type(const std::string& type_string);
/* gives the difference of the number of columns to the dimension */
long type_nr_columns_correction(InputType type);
/* returns true if the input of this type is a vector */
bool type_is_vector(InputType type);
/* this type is used in the entries of keys
* it has to be able to hold number of generators */
typedef unsigned int key_t;
extern bool verbose;
extern size_t GMP_mat, GMP_hyp, GMP_scal_prod;
extern size_t TotDet;
/*
* If this variable is set to true, the current computation is interrupted and
* an InterruptException is raised.
*/
extern volatile sig_atomic_t nmz_interrupted;
extern bool nmz_scip; // controls the use of Scip
#define INTERRUPT_COMPUTATION_BY_EXCEPTION \
if(nmz_interrupted){ \
throw InterruptException( "external interrupt" ); \
}
/* if test_arithmetic_overflow is true, many operations are also done
* modulo overflow_test_modulus to ensure the correctness of the calculations */
// extern bool test_arithmetic_overflow;
// extern long overflow_test_modulus;
extern long default_thread_limit;
extern long thread_limit;
extern bool parallelization_set;
long set_thread_limit(long t);
/* set the verbose default value */
bool setVerboseDefault(bool v);
/* methods to set and use the output streams */
void setVerboseOutput(std::ostream&);
void setErrorOutput(std::ostream&);
std::ostream& verboseOutput();
std::ostream& errorOutput();
void interrupt_signal_handler( int signal );
} /* end namespace libnormaliz */
#endif /* LIBNORMALIZ_H_ */
|