Macaulay2 Engine
Loading...
Searching...
No Matches
◆
compare_elems()
int
M2::ARingCCC::compare_elems
(
const
ElementType
&
f
,
const
ElementType
&
g
) const
inline
Definition at line
114
of file
aring-CCC.hpp
.
115
{
116
int
cmp_re = mpfr_cmp(&f.re, &g.re);
117
if
(cmp_re < 0)
return
-1;
118
if
(cmp_re > 0)
return
1;
119
int
cmp_im = mpfr_cmp(&f.im, &g.im);
120
if
(cmp_im < 0)
return
-1;
121
if
(cmp_im > 0)
return
1;
122
return
0;
123
}
References
cc_struct::im
, and
cc_struct::re
.
M2
ARingCCC
Generated on
for Macaulay2 Engine by
1.15.0