NT must be a model of concept RealEmbeddable.
NT must be at least model of concept IntegralDomainWithoutDivision.
Note that some filtering mechanism is available at the predicate level using Filtered_predicate and Filtered_kernel.
#include <CGAL/Lazy_exact_nt.h>
IntegralDomainWithoutDivision | same as NT |
RealEmbeddable | |
Fraction | if NT is a Fraction |
| |
introduces an uninitialized variable m.
| |
| |
introduces the integral value i.
| |
| |
introduces the floating point value d (works only if NT has a
constructor from a double too).
| |
| |
introduces the value n.
| |
| |
| |
introduces the value n. NT1 needs to be convertible to NT
(and this conversion will only be done if necessary).
|
|
| returns the corresponding NT value. | ||
|
| returns an interval containing the exact value. | ||
|
| returns an interval containing the exact value. | ||
|
| |||
specifies the relative precision that to_double() has to fulfill.
The default value is .
| ||||
|
| |||
returns the relative precision that to_double() currently fulfills. | ||||
|
| writes m to ostream out in an interval format. | ||
|
| reads a NT from in, then converts it to a Lazy_exact_nt<NT>. |
#include <CGAL/Cartesian.h> #include <CGAL/MP_Float.h> #include <CGAL/Lazy_exact_nt.h> #include <CGAL/Quotient.h> typedef CGAL::Lazy_exact_nt<CGAL::Quotient<CGAL::MP_Float> > NT; typedef CGAL::Cartesian<NT> K;