You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
552 B

25 years ago
25 years ago
25 years ago
25 years ago
  1. // Built-in rational number ring.
  2. #ifndef _CL_RATIONAL_RING_H
  3. #define _CL_RATIONAL_RING_H
  4. #include "cln/ring.h"
  5. #include "cln/rational_class.h"
  6. namespace cln {
  7. typedef cl_specialized_number_ring<cl_RA> cl_rational_ring;
  8. extern const cl_rational_ring cl_RA_ring; // math. Q
  9. extern cl_class cl_class_rational_ring;
  10. class cl_RA_ring_init_helper
  11. {
  12. static int count;
  13. public:
  14. cl_RA_ring_init_helper();
  15. ~cl_RA_ring_init_helper();
  16. };
  17. static cl_RA_ring_init_helper cl_RA_ring_init_helper_instance;
  18. } // namespace cln
  19. #endif /* _CL_RATIONAL_RING_H */