pub trait ModNeg<M = Self> {
type Output;
// Required method
fn mod_neg(self, m: M) -> Self::Output;
}
Expand description
Negates a number modulo another number $m$. The input must be already reduced modulo $m$.
Negates a number modulo another number $m$, in place. The input must be already
reduced modulo $m$.
$f(x, m) = y$, where $x, y < m$ and $-x \equiv y \mod m$.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
This is equivalent to nmod_neg
from nmod.h
, FLINT 2.7.1.
Negates a number modulo another number $m$, in place. The input must be already
reduced modulo $m$.
$f(x, m) = y$, where $x, y < m$ and $-x \equiv y \mod m$.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
This is equivalent to nmod_neg
from nmod.h
, FLINT 2.7.1.
Negates a number modulo another number $m$, in place. The input must be already
reduced modulo $m$.
$f(x, m) = y$, where $x, y < m$ and $-x \equiv y \mod m$.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
This is equivalent to nmod_neg
from nmod.h
, FLINT 2.7.1.
Negates a number modulo another number $m$, in place. The input must be already
reduced modulo $m$.
$f(x, m) = y$, where $x, y < m$ and $-x \equiv y \mod m$.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
This is equivalent to nmod_neg
from nmod.h
, FLINT 2.7.1.
Negates a number modulo another number $m$, in place. The input must be already
reduced modulo $m$.
$f(x, m) = y$, where $x, y < m$ and $-x \equiv y \mod m$.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
This is equivalent to nmod_neg
from nmod.h
, FLINT 2.7.1.
Negates a number modulo another number $m$, in place. The input must be already
reduced modulo $m$.
$f(x, m) = y$, where $x, y < m$ and $-x \equiv y \mod m$.
§Worst-case complexity
Constant time and additional memory.
§Examples
See here.
This is equivalent to nmod_neg
from nmod.h
, FLINT 2.7.1.