Macaulay2 Engine
Loading...
Searching...
No Matches
aring-RR.cpp
Go to the documentation of this file.
1
#include "
aring-RR.hpp
"
2
3
namespace
M2
{
4
5
void
ARingRR::text_out
(
buffer
&o)
const
{ o <<
"ARR_53"
; }
6
void
ARingRR::elem_text_out
(
buffer
&o,
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:
aring-RR.hpp
M2::ARingRR — machine-precision real numbers (IEEE 754 double).
M2::ARingRR::ElementType
elem ElementType
Definition
aring-RR.hpp:68
M2::ARingRR::text_out
void text_out(buffer &o) const
Definition
aring-RR.cpp:5
M2::ARingRR::elem_text_out
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
buffer
Definition
buffer.hpp:55
M2
Definition
aring-CC.cpp:3
Macaulay2
e
aring-RR.cpp
Generated on
for Macaulay2 Engine by
1.15.0