#include <vnl_rational_traits.h>
Inheritance diagram for vnl_numeric_traits< vnl_rational >:

Definition at line 13 of file vnl_rational_traits.h.
Public Types | |
| typedef vnl_rational | abs_t |
| Return value of abs(). | |
| typedef vnl_rational | double_t |
| Name of a type twice as long as this one for accumulators and products. | |
| typedef double | real_t |
| Name of type which results from multiplying this type with a double. | |
Static Public Attributes | |
| static const vnl_rational | zero |
| Additive identity. | |
| static const vnl_rational | one |
| Multiplicative identity. | |
| static const vnl_rational | maxval |
| Maximum value which this type can assume. | |
| typedef vnl_rational vnl_numeric_traits< vnl_rational >::abs_t |
| typedef vnl_rational vnl_numeric_traits< vnl_rational >::double_t |
Name of a type twice as long as this one for accumulators and products.
Definition at line 25 of file vnl_rational_traits.h.
| typedef double vnl_numeric_traits< vnl_rational >::real_t |
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 30 of file vnl_rational_traits.h.
const vnl_rational vnl_numeric_traits< vnl_rational >::zero [static] |
const vnl_rational vnl_numeric_traits< vnl_rational >::one [static] |
const vnl_rational vnl_numeric_traits< vnl_rational >::maxval [static] |
1.5.1