Macaulay2 Engine
Loading...
Searching...
No Matches
◆
syz()
template<class E,
bool
OC>
void
ExponentVector
< E, OC >::syz
(
int
nvars
,
ConstExponents
a
,
ConstExponents
b
,
Exponents
c
,
Exponents
d
)
inline
static
Definition at line
257
of file
ExponentVector.hpp
.
262
{
263
for
(
int
i
= 0;
i
<
nvars
;
i
++)
264
{
265
Exponent
t
=
a
[
i
] -
b
[
i
];
266
if
(
t
>= 0)
267
{
268
c
[
i
] = 0;
269
d
[
i
] =
t
;
270
}
271
else
272
{
273
c
[
i
] = -
t
;
274
d
[
i
] = 0;
275
}
276
}
277
}
ExponentVector::Exponent
E Exponent
Definition
ExponentVector.hpp:68
ExponentVector
Definition
ExponentVector.hpp:66
ExponentVector
Generated on
for Macaulay2 Engine by
1.15.0