Commit Graph

926 Commits

Author SHA1 Message Date
Sébastien Loriot 51f65d27c7 The fact that CGAL_EIGEN3_ENABLED is not defined should not prevent
from using CGAL NT's with Eigen
2012-11-08 08:51:10 +00:00
Laurent Rineau 964f3a1767 Fix a warning on Windows x64:
include\CGAL/GMP/Gmpfr_type.h(1013) : warning C4267: 'argument' :
conversion from 'size_t' to 'CGAL::Gmpfr::Precision_type', possible loss of
data
2012-10-17 08:02:04 +00:00
Sébastien Loriot e0a34e1dc8 adding a specialization for Sqrt_extension for NT_converter
and its test
2012-10-15 07:39:24 +00:00
Sébastien Loriot 4e04a6ee0d add deprecation notice 2012-10-11 20:12:51 +00:00
Laurent Rineau 7bc300794d Fix last errors in headers of CGAL foundations
All were missing #include.
2012-10-08 09:03:50 +00:00
Laurent Rineau 590bdeca5f Fix headers of Number_types
Mostly missing headers.

<CGAL/number_type_basic.h> is really a problem. There are too many circular
dependencies between number types headers. I have created a new header
<CGAL/number_type_config.h> that only defines macros.
2012-10-08 08:43:52 +00:00
Laurent Rineau bdbe6745dc Rename a test to avoid a conflict
There was target name conflict with
test/Algebraic_foundations/Coercion_traits.cpp
2012-10-05 14:08:47 +00:00
Marc Glisse 54b8950992 Bug: missing one function in NumTraits.
(Eigen is not really that good at dealing with exact types...)
2012-09-04 13:08:46 +00:00
Marc Glisse 3f34f0cce1 merge from next 2012-08-24 17:31:16 +00:00
Luis Peñaranda ab989d45c2 avoid small precisions in Gmpfr(Gmpz,prec) 2012-08-23 15:22:09 +00:00
Luis Peñaranda 5d226ee74f assure exact conversion in postcondition of Gmpfr::to_integer_exp 2012-08-22 19:46:53 +00:00
Laurent Rineau 2db4effa7e CMake: Fix the handling of cmake_policy
That is a followup-to my commit last year:
  | ------------------------------------------------------------------------
  | r63198 | lrineau | 2011-04-28 19:45:22 +0200 (Thu, 28 Apr 2011) | 5 lines
  | 
  | Try to fix my last revision about cmake_policy, with CMake-2.6.x
  | 
  | CMake gives an error if one tries to use cmake_policy(VERSION x.y.z) if
  | x.y.z is greater than the current CMake version.
  | 
  | ------------------------------------------------------------------------

The following check:
  if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6)
is useless just after a call to:
 cmake_minimum_required(VERSION 2.6.2)



The script used to fix that was:


#!/usr/bin/env perl

$replacement=<<'END';
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3)
  cmake_policy(VERSION 2.8.4)
else()
  cmake_policy(VERSION 2.6)
endif()
END

while(<>) {
    if(/if\("\${CMAKE_MAJOR_VERSION}.\${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6\)/) {
        while(<>) {
            if(/^endif\(\)/) {
                print "$replacement";
                while(<>) {
                    print;
                }
                exit 0
            }
        }
    }
    print;
}
2012-08-22 12:35:03 +00:00
Luis Peñaranda 78384351ae ref-to-const passing in constructor Gmpq(Gmpfr) 2012-08-21 19:55:43 +00:00
Marc Glisse 028093aacd improve precision of conversion to subnormal double 2012-08-17 13:50:25 +00:00
Laurent Rineau 71608a9b7a Missing #include 2012-08-10 10:07:55 +00:00
Marc Glisse 14d4a22db0 mpfi has its own macro 2012-08-09 22:40:21 +00:00
Marc Glisse 91d12aaabd Fix Lazy_exact_nt(enum).
It would be better to forward to the underlying type, but that will wait until C++11.
2012-08-09 14:25:08 +00:00
Marc Glisse e19e346d3c merge from next 2012-08-09 10:53:34 +00:00
Marc Glisse 87e6d011ca Try to make VC quiet 2012-08-09 10:52:20 +00:00
Marc Glisse b26db11ffd Do test eigen (I always forget to edit CMakeLists.txt).
We never promised that Lazy_exact_nt would be constructible from unsigned when ET isn't.
2012-08-09 10:49:31 +00:00
Luis Peñaranda 8e26eb9395 bug in Gmpfr input from istream 2012-08-08 15:16:49 +00:00
Marc Glisse effbc35b3c Painful merge from next 2012-08-08 10:55:37 +00:00
Marc Glisse cf4a0bfa30 forgot to svn add one file 2012-08-03 20:13:31 +00:00
Sébastien Loriot 84662fa484 move the protector to only protect computation using intervals.
The to_interval may need another rounding mode.
2012-08-01 13:50:01 +00:00
Marc Glisse 49f812413d Specialize Eigen::NumTraits for Gmpfr, Gmpfi, CORE and Sqrt_extension.
Leave out Gmpzf for now.

Test them all (g++ now crashes after an hour on this test, whereas clang happily finishes in a minute).
2012-07-31 19:24:36 +00:00
Marc Glisse 6eb9cdfc91 Make Lazy_exact_nt constructible from any arithmetic type.
Don't test Eigen with MP_Float yet:
- it is missing a constructor from long
- the test already takes >6min to compile...
2012-07-31 15:00:55 +00:00
Marc Glisse 943f9d4632 manual merge from the Interval(long) branch 2012-07-31 12:49:03 +00:00
Marc Glisse 7af5591f94 merge from next 2012-07-31 12:41:02 +00:00
Marc Glisse c42caa17a4 Missing standard header. 2012-07-27 17:58:38 +00:00
Luis Peñaranda f14bb809c4 avoided one compiler warning in Gmpfr_type.h 2012-07-06 16:59:30 +00:00
Luis Peñaranda a59259338b initialized some pointers to avoid warnings 2012-07-06 14:35:14 +00:00
Luis Peñaranda 97111c3ee4 typo 2012-07-06 14:35:10 +00:00
Eric Berberich 1300a51965 remove compiler warning 2012-07-06 06:22:31 +00:00
Eric Berberich e9d8b4680f removed C++11 warning 2012-07-05 08:36:44 +00:00
Marc Glisse 3168248be7 Now it doesn't compile anymore ;-) 2012-06-30 17:38:46 +00:00
Marc Glisse e9d44e73e9 Add testcase. Note that the testcase also passes without the NumTraits specializations, looks like Eigen improved their default behavior with unknown number types. 2012-06-30 16:34:32 +00:00
Marc Glisse 93965914b1 Eigen::NumTraits for Lazy_exact_nt, MP_Float and Quotient. Still untested. 2012-06-30 07:50:30 +00:00
Marc Glisse 20f5c8b2ee Eigen::NumTraits for Gmpz, Gmpq, Interval_nt. Untested. 2012-06-30 07:31:43 +00:00
Eric Berberich 83ae4dfda7 added missing include 2012-06-29 00:44:05 +00:00
Eric Berberich 5aea3180b9 added missing includes
Error showed up in test of new cmake stuff, where includes are less distributed
2012-06-26 23:35:18 +00:00
Luis Peñaranda 7f08b8bd7a Gmpfr: fixed const-ref passing for constructor 2012-06-07 19:51:12 +00:00
Luis Peñaranda 1e0e574d6b Gmpfi: typos in reference manual 2012-06-07 19:51:05 +00:00
Alexander Kobel fc116df1db typo in documentation of Protect_FPU_rounding 2012-06-07 10:38:16 +00:00
Luis Peñaranda 9c255f34a6 updated Gmpfi and Gmpfr manuals 2012-06-06 15:42:47 +00:00
Luis Peñaranda 319b114860 Gmpfr: pretty-printing 2012-06-06 15:26:47 +00:00
Luis Peñaranda ff8335dea6 Gmpfi: bug in constructors from std::pairs and in istream input 2012-06-06 15:26:41 +00:00
Marc Glisse c6fb9b094b https://cgal.geometryfactory.com/CGAL/Members/wiki/Features/Small_Features/compare_unsigned_numbers 2012-05-17 07:11:35 +00:00
Sébastien Loriot 7611a19803 more verbose test 2012-04-23 08:13:43 +00:00
Laurent Rineau baeec2d53f merge all the changes from next! 2012-01-20 17:45:27 +00:00
Laurent Rineau a37c74d534 Add license files, per package 2012-01-16 15:54:22 +00:00