2 #ifndef vnl_rational_traits_h_ 3 #define vnl_rational_traits_h_ 12 # include <vcl_msvc_warnings.h> 14 #include <vnl/vnl_export.h> 42 std::ostream&
operator<<(std::ostream&,
const std::complex<vnl_rational>&);
49 static const std::complex<vnl_rational>
zero;
51 static const std::complex<vnl_rational>
one;
53 static const std::complex<vnl_rational>
maxval;
59 typedef std::complex<vnl_rational>
real_t;
73 #endif // vnl_rational_traits_h_ static const std::complex< vnl_rational > maxval
Maximum value which this type can assume; makes no sense for this type.
vnl_rational double_t
Name of a type twice as long as this one for accumulators and products.
static const std::complex< vnl_rational > one
Multiplicative identity.
Templated zero/one/precision.
vnl_rational abs_t
Return value of abs().
vnl_rational abs_t
Return value of abs().
static const std::complex< vnl_rational > zero
Additive identity.
double real_t
Name of type which results from multiplying this type with a double.
real numerical constants.
vnl_bignum squared_magnitude(vnl_bignum const &x)
std::ostream & operator<<(std::ostream &s, vnl_decnum const &r)
decimal output.
static VNL_EXPORT const vnl_rational one
Multiplicative identity.
std::complex< vnl_rational > double_t
Name of a type twice as long as this one for accumulators and products.
static VNL_EXPORT const vnl_rational zero
Additive identity.
vnl_bignum abs(vnl_bignum const &x)
static VNL_EXPORT const vnl_rational maxval
Maximum value which this type can assume.
std::complex< vnl_rational > real_t
Name of type which results from multiplying this type with a double.
High-precision rational numbers.
High-precision rational numbers.