emersonmx

CGAL_arr_rational

Jan 12th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #ifndef CGAL_ARR_RATIONAL_NT_H
  2. #define CGAL_ARR_RATIONAL_NT_H
  3.  
  4. #include <CGAL/basic.h>
  5.  
  6. #ifdef CGAL_USE_GMP
  7.  
  8.   // GMP is installed. Use the GMP rational number-type.
  9.   #include <CGAL/Gmpq.h>
  10.  
  11.   typedef CGAL::Gmpq                                    Number_type;
  12.  
  13. #else
  14.  
  15.   // GMP is not installed. Use CGAL's exact rational number-type.
  16.   #include <CGAL/MP_Float.h>
  17.   #include <CGAL/Quotient.h>
  18.  
  19.   typedef CGAL::Quotient<CGAL::MP_Float>                Number_type;
  20.  
  21. #endif
  22.  
  23. #endif
Advertisement
Add Comment
Please, Sign In to add comment