#include <vnl_rational_traits.h>

Public Types | |
| typedef vnl_rational | abs_t |
| Return value of abs(). More... | |
| typedef vnl_rational | double_t |
| Name of a type twice as long as this one for accumulators and products. More... | |
| typedef double | real_t |
| Name of type which results from multiplying this type with a double. More... | |
Static Public Attributes | |
| static VNL_EXPORT const vnl_rational | zero = vnl_rational(0L,1L) |
| Additive identity. More... | |
| static VNL_EXPORT const vnl_rational | one = vnl_rational(1L,1L) |
| Multiplicative identity. More... | |
| static VNL_EXPORT const vnl_rational | maxval = vnl_rational(vnl_numeric_traits<long>::maxval,1L) |
| Maximum value which this type can assume. More... | |
Definition at line 38 of file vnl_rational_traits.h.
|
inherited |
Return value of abs().
Definition at line 27 of file vnl_rational_traits.h.
|
inherited |
Name of a type twice as long as this one for accumulators and products.
Definition at line 29 of file vnl_rational_traits.h.
|
inherited |
Name of type which results from multiplying this type with a double.
Note that this requires an explicit cast from double to vnl_rational. This must be a built-in type: do not set this to vnl_rational, since that would require std::sqrt(vnl_rational) etc., which is not allowed.
Definition at line 34 of file vnl_rational_traits.h.
|
staticinherited |
Maximum value which this type can assume.
Definition at line 25 of file vnl_rational_traits.h.
|
staticinherited |
Multiplicative identity.
Definition at line 23 of file vnl_rational_traits.h.
|
staticinherited |
Additive identity.
Definition at line 21 of file vnl_rational_traits.h.
1.8.15