Macaulay2 Engine
Loading...
Searching...
No Matches
aring-RR.cpp
Go to the documentation of this file.
1#include "aring-RR.hpp"
2
3namespace M2 {
4
5void ARingRR::text_out(buffer &o) const { o << "ARR_53"; }
7 const ElementType &ap,
8 bool p_one,
9 bool p_plus,
10 bool p_parens) const
11{
12 (void) p_parens;
13
14 if (p_plus && ap > 0)
15 o << "+";
16
17 if (!p_one && ap == -1)
18 o << "-";
19 else if (p_one || ap != 1)
20 o << ap;
21}
22
23}; // end namespace M2
24
25// Local Variables:
26// compile-command: "make -C $M2BUILDDIR/Macaulay2/e "
27// indent-tabs-mode: nil
28// End:
M2::ARingRR — machine-precision real numbers (IEEE 754 double).
elem ElementType
Definition aring-RR.hpp:68
void text_out(buffer &o) const
Definition aring-RR.cpp:5
void elem_text_out(buffer &o, const ElementType &a, bool p_one=true, bool p_plus=false, bool p_parens=false) const
Definition aring-RR.cpp:6
Definition aring-CC.cpp:3