12 if (p_plus && (ap.
re > 0 || (ap.
re == 0 && ap.
im > 0)))
15 if (p_parens && ap.
re != 0 && ap.
im != 0) {
21 o <<
"-(" << &neg <<
")";
24 o <<
"(" << &ap <<
")";
27 if (!p_one && ap.
re == -1 && ap.
im == 0)
29 else if (p_one || ap.
re != 1 || ap.
im != 0)
M2::ARingCC — machine-precision complex numbers (pair of doubles).
void text_out(buffer &o) const
void negate(ElementType &result, const ElementType &a) const
void init(ElementType &result) const
void elem_text_out(buffer &o, const ElementType &a, bool p_one=true, bool p_plus=false, bool p_parens=false) const
static void clear(ElementType &result)