]> www.ginac.de Git - cln.git/blob - src/polynomial/cl_UP.h
- Fixed a logic error in the checks of gmp3.
[cln.git] / src / polynomial / cl_UP.h
1 // Internals of Univariate polynomials.
2
3 #ifndef _CL_UP_H
4 #define _CL_UP_H
5
6 #include "cl_univpoly.h"
7 #include "cl_output.h"
8
9 extern cl_heap_univpoly_ring* cl_make_univpoly_ring (const cl_ring& r);
10
11 struct cl_varname_property : public cl_property {
12         SUBCLASS_cl_property();
13 public:
14         cl_symbol varname;
15         // Constructor.
16         cl_varname_property (const cl_symbol& k, const cl_symbol& v) : cl_property (k), varname (v) {}
17 };
18
19 // The property list key used to look up the varname.
20 extern cl_symbol cl_univpoly_varname_key;
21
22 static inline const cl_string get_varname (cl_heap_univpoly_ring* UPR)
23 {
24         cl_property* p = UPR->get_property(cl_univpoly_varname_key);
25         if (p)
26                 return ((cl_varname_property*)p)->varname;
27         else
28                 return cl_default_print_flags.univpoly_varname;
29 }
30
31 #endif /* _CL_UP_H */