Macaulay2 Engine
Loading...
Searching...
No Matches

◆ test_over_RR_or_CC()

void test_over_RR_or_CC ( const Ring * R)

Groebner computations interface routines

Definition at line 38 of file groebner.cpp.

39{
40 // const PolynomialRing *P = R->cast_to_PolynomialRing();
41 if (R->get_precision() > 0)
42 {
44 {
45 buffer o;
46 o << "-- warning: experimental computation over inexact field begun"
47 << newline;
48 o << "-- results not reliable (one warning given per "
49 "session)"
50 << newline;
51 emit(o.str());
53 }
54 }
55}
virtual unsigned long get_precision() const
Definition ring.cpp:438
char * str()
Definition buffer.hpp:72
bool warning_given_for_gb_or_res_over_RR_or_CC
Definition groebner.cpp:36
char newline[]
Definition m2-types.cpp:49
void emit(const char *s)
Definition text-io.cpp:41

References emit(), Ring::get_precision(), newline, RingMap::R, buffer::str(), and warning_given_for_gb_or_res_over_RR_or_CC.

Referenced by IM2_GB_force(), IM2_GB_make(), IM2_res_make(), and rawMarkedGB().