pub trait ModSquareAssign<M = Self> {
// Required method
fn mod_square_assign(&mut self, m: M);
}
Expand description
Squares a number modulo another number $m$, in place. The input must be already reduced modulo
$m$.
Squares a number modulo another number $m$, in place. The input must be already
reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $x^2 \equiv y \mod m$.
§Worst-case complexity
Constant time and additional memory.
§Panics
Panics if self
is greater than or equal to m
.
§Examples
See here.
Squares a number modulo another number $m$, in place. The input must be already
reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $x^2 \equiv y \mod m$.
§Worst-case complexity
Constant time and additional memory.
§Panics
Panics if self
is greater than or equal to m
.
§Examples
See here.
Squares a number modulo another number $m$, in place. The input must be already
reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $x^2 \equiv y \mod m$.
§Worst-case complexity
Constant time and additional memory.
§Panics
Panics if self
is greater than or equal to m
.
§Examples
See here.
Squares a number modulo another number $m$, in place. The input must be already
reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $x^2 \equiv y \mod m$.
§Worst-case complexity
Constant time and additional memory.
§Panics
Panics if self
is greater than or equal to m
.
§Examples
See here.
Squares a number modulo another number $m$, in place. The input must be already
reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $x^2 \equiv y \mod m$.
§Worst-case complexity
Constant time and additional memory.
§Panics
Panics if self
is greater than or equal to m
.
§Examples
See here.
Squares a number modulo another number $m$, in place. The input must be already
reduced modulo $m$.
$x \gets y$, where $x, y < m$ and $x^2 \equiv y \mod m$.
§Worst-case complexity
Constant time and additional memory.
§Panics
Panics if self
is greater than or equal to m
.
§Examples
See here.