Commit Graph

760 Commits

Author SHA1 Message Date
Sébastien Loriot 62c6b7d582 license bug 2010-06-16 08:42:21 +00:00
Sébastien Loriot b53e23c906 add forward declaration for Quotient 2010-06-16 08:22:01 +00:00
Michael Hemmer 181af0419d added missing include 2010-06-14 08:34:32 +00:00
Michael Hemmer d15cc947a4 relax rounding conditions in to_interval 2010-06-11 07:53:37 +00:00
Sébastien Loriot 52317dd49f add python script (replace_CGAL_NAMESPACE.py) to replace CGAL_BEGIN_NAMESPACE and CGAL_END_NAMESPACE
by namespace CGAL { and } //namespace CGAL. in all .h and .cpp files
in a directory.
Apply it to all packages in the trunk
Remove macro definition from the config.h file.
2010-06-09 07:37:13 +00:00
Luis Peñaranda 2d9d876611 removed useless calls to mpq_canonicalize in Gmpq_type.h, and added a
CGAL:: to avoid confusion in Gmpfi.h
2010-06-07 09:24:10 +00:00
Marc Glisse d3d5da387e Replace __gmp_expr with mp*_class where appropriate. 2010-05-25 19:58:27 +00:00
Michael Hemmer 1ab0e40c06 fix corner case in round, where the float is representing
a power of 2 in the mantissa
2010-05-11 11:41:12 +00:00
Michael Hemmer 8ab715005c rm useless def of CGAL::in for Interval_nt in test file 2010-05-11 10:05:19 +00:00
Luis Peñaranda 1c2f4582c0 Some changes in the Gmpfi and Gmpfr classes:
-eliminated useless 'inline' keywords;
-wrapped to 80 columns;
-added extra assertions in functions;
-eliminated the reference counting from Gmpfi, since the reference counted
endpoints do the job;
-minor details in documentation.
2010-05-06 15:28:17 +00:00
Michael Hemmer 65d67a3591 move Wang traits spec into Sqrt_extension 2010-05-05 16:04:03 +00:00
Michael Hemmer d49fb7e465 mv spec code for Sqrt_extension / convert_to_bfi to Sqrt_extension 2010-05-05 15:05:18 +00:00
Michael Hemmer 0d2cb98390 move Get_arithmetic_kernel specializations into correct packages 2010-05-05 14:19:26 +00:00
Michael Hemmer 8f5307aa49 added missing result_type 2010-05-03 12:23:24 +00:00
Michael Hemmer d4ef4141a1 CGAL::round -> CGAL::internal::round since just for CORE::BigFloat 2010-04-26 07:22:59 +00:00
Luis Peñaranda 9bcca2ec41 just avoided compiler warning "argc and argv unused" 2010-04-23 09:13:54 +00:00
Michael Kerber 7b93a2c07e --pdeantic does not like semicolons after macros 2010-04-21 21:49:30 +00:00
Fernando Cacciola 18bf09804d CORRECTED fixed const correctness for update_exact() 2010-03-30 17:15:45 +00:00
Michael Hemmer 324d701903 added missing interoperable operator in Compare 2010-03-26 12:59:35 +00:00
Luis Peñaranda f64425e78b added #ifdef CGAL_USE_MPFI to avoid reds in the testsuite 2010-03-20 14:17:12 +00:00
Luis Peñaranda 609e787fe0 removed version check hack from test/Number_types/CMakeLists.txt 2010-03-18 11:32:36 +00:00
Michael Hemmer 2fbe557757 use macro \exacus 2010-03-16 14:57:09 +00:00
Luis Peñaranda 94f3caaf94 changed all appearances of MPFI and MPFI by \mpfr and \mpfi 2010-03-16 14:02:58 +00:00
Michael Hemmer 7515cd7436 minor fix 2010-03-11 14:02:48 +00:00
Michael Hemmer 679477b283 minor fix 2010-03-11 13:53:24 +00:00
Luis Peñaranda 2a8b15b4fa added 'static' keyword to Gmpfi default precision variables 2010-03-09 16:42:20 +00:00
Luis Peñaranda 1064605742 added missing 'inline' keyword to Gmpfi::init_precision_for_thread() 2010-03-09 15:56:53 +00:00
Luis Peñaranda 3775b22b2f corrected bug in constructor Gmpfr(mpfr_srcptr), only used internally by
Gmpfr and Gmpfi
2010-03-09 13:45:13 +00:00
Michael Hemmer 3d8d9e6e96 added bug report related to problems in Gmpfr::to_integer_exp 2010-03-09 10:08:13 +00:00
Eric Berberich f5a3cd5bc9 removed some debug output on std::cout 2010-03-07 19:28:27 +00:00
Michael Hemmer 3c572bbaa3 fix macro name 2010-03-02 10:48:48 +00:00
Luis Peñaranda 0a5d070e9f fixed broken \verb, which was terminated by an end of line 2010-03-02 08:14:39 +00:00
Michael Hemmer 8d563e7620 added missing precond in doc 2010-03-02 08:07:35 +00:00
Luis Peñaranda 403661c074 changed macro names reported by check_macro_names script 2010-03-01 14:16:54 +00:00
Luis Peñaranda b869316bab Fixed bug in Gmpfr(Gmpz) when constructing from small integers. Changed
assertions in Gmpfr::to_integer_exp in order to avoid eventual inexact
divisions.
2010-02-24 08:37:50 +00:00
Luis Peñaranda ba2792244d moved the Coercion_traits.cpp build line after the MPFI configuration 2010-02-23 09:41:26 +00:00
Michael Hemmer 91ad5bda02 minor fix, default kernel may be GMP kernel 2010-02-22 16:32:22 +00:00
Luis Peñaranda e75225cecb Changed Gmpfr constructors such that the conversion is always exact and
updated documentation.
Added constructor test to the Gmpfr testsuite.
Corrected two bugs in constructor Gmpq(Gmpfr): one when the exponent is
positive and one when the exponent is negative.
2010-02-21 16:24:52 +00:00
Michael Hemmer 9a9fe133bd add test BigFloat to Rational (for LEDA/GMP)
for CORE there is not BigFloat defined
2010-02-19 15:40:56 +00:00
Luis Peñaranda 15bed06ec7 Added operators Gmpq/double. Added tests of arithmetic operators between
Gmpq and other GMP types. Fixed constructor Gmpfi(Gmpq).
2010-02-19 15:20:16 +00:00
Luis Peñaranda abcfab4ee3 Added constructor Gmpq(Gmpfr) and eliminated constructor Gmpfr(Gmpq)
because it is not exact. Replaced all the operations between Gmpfr and Gmpq
that returned a Gmpfr by the same operations returning a Gmpq (these new
operations are exact). Changed coercion traits (I hope) accordingly.
2010-02-19 11:52:49 +00:00
Luis Peñaranda 4928db9f6b added function Gmpz::bit_size(), documented it and added a few missing
functions to the Gmpz documentation
2010-02-18 16:07:52 +00:00
Michael Hemmer 172e9849f7 minor change in round and to_double due to slight semantic change
from get_significant_bits too relative_precision
2010-02-18 13:17:19 +00:00
Luis Peñaranda 6330e6419c added constructor Gmpfr(std::pair<Gmpz,int>) 2010-02-17 13:19:49 +00:00
Luis Peñaranda ffc76c165c moved all the tests to the Gmpfi type to a single file 2010-02-17 13:12:12 +00:00
Luis Peñaranda 24e9475000 moved all the tests on the Gmpfr type to a single file 2010-02-17 10:51:36 +00:00
Sébastien Loriot 6f426bdf5c change bad return type 2010-02-17 08:49:02 +00:00
Luis Peñaranda 14f1d38f90 corrected bug in assertions in Gmpfr::to_integer_exp() 2010-02-16 14:25:14 +00:00
Michael Hemmer b6385c28f8 added Relative_precision to Bigfloat_interval_traits
replaces Get_significant_bits
2010-02-15 21:09:42 +00:00
Michael Hemmer 20cff798eb added interoperability with unsigned long 2010-02-15 21:08:41 +00:00