Macaulay2 Engine
Loading...
Searching...
No Matches
◆
from_ring_elem()
void M2::ARingZZp::from_ring_elem
(
ElementType
&
result
,
const
ring_elem
&
a
) const
inline
Definition at line
136
of file
aring-zzp.hpp
.
137
{
138
if
(a.
get_int
() == 0)
139
result
=
p1
;
140
else
if
(a.
get_int
() ==
p1
)
141
result
= 0;
142
else
143
result
= a.
get_int
();
144
}
M2::ARingZZp::p1
int p1
Definition
aring-zzp.hpp:371
result
VALGRIND_MAKE_MEM_DEFINED & result(result)
ring_elem::get_int
int get_int() const
Definition
ringelem.hpp:124
References
ring_elem::get_int()
,
p1
, and
result()
.
M2
ARingZZp
Generated on
for Macaulay2 Engine by
1.15.0