pub struct BinaryField128(/* private fields */);Expand description
The binary tower field GF(2^128).
A quadratic extension of BinaryField64 generated by a root X of
X² + αX + 1, where α is the generator of the level below over the one beneath it.
The low half of the backing integer holds the coefficient of 1, the high half the
coefficient of X.
The serde encoding is canonical: every field element has exactly one valid byte
representation (see the manual Deserialize impl below). #[serde(transparent)]
makes the derived Serialize emit the backing integer itself, which is what that
impl reads back.
Implementations§
Source§impl BinaryField128
impl BinaryField128
Sourcepub fn from_le_bytes(bytes: [u8; 16]) -> Self
pub fn from_le_bytes(bytes: [u8; 16]) -> Self
Construct a field element from its little-endian byte representation.
Every byte string of the right length is a valid input: from_repr masks
any bits above the canonical range.
Trait Implementations§
Source§impl Add for BinaryField128
impl Add for BinaryField128
Source§impl Add<BinaryField2> for BinaryField128
impl Add<BinaryField2> for BinaryField128
Source§type Output = BinaryField128
type Output = BinaryField128
+ operator.Source§fn add(self, rhs: BinaryField2) -> Self
fn add(self, rhs: BinaryField2) -> Self
+ operation. Read moreSource§impl Add<BinaryField8> for BinaryField128
impl Add<BinaryField8> for BinaryField128
Source§type Output = BinaryField128
type Output = BinaryField128
+ operator.Source§fn add(self, rhs: BinaryField8) -> Self
fn add(self, rhs: BinaryField8) -> Self
+ operation. Read moreSource§impl Add<BinaryField16> for BinaryField128
impl Add<BinaryField16> for BinaryField128
Source§type Output = BinaryField128
type Output = BinaryField128
+ operator.Source§fn add(self, rhs: BinaryField16) -> Self
fn add(self, rhs: BinaryField16) -> Self
+ operation. Read moreSource§impl Add<BinaryField32> for BinaryField128
impl Add<BinaryField32> for BinaryField128
Source§type Output = BinaryField128
type Output = BinaryField128
+ operator.Source§fn add(self, rhs: BinaryField32) -> Self
fn add(self, rhs: BinaryField32) -> Self
+ operation. Read moreSource§impl Add<BinaryField64> for BinaryField128
impl Add<BinaryField64> for BinaryField128
Source§type Output = BinaryField128
type Output = BinaryField128
+ operator.Source§fn add(self, rhs: BinaryField64) -> Self
fn add(self, rhs: BinaryField64) -> Self
+ operation. Read moreSource§impl Add<BinaryField128> for BinaryField8
impl Add<BinaryField128> for BinaryField8
Source§type Output = BinaryField128
type Output = BinaryField128
+ operator.Source§impl Add<BinaryField128> for BinaryField16
impl Add<BinaryField128> for BinaryField16
Source§type Output = BinaryField128
type Output = BinaryField128
+ operator.Source§impl Add<BinaryField128> for BinaryField32
impl Add<BinaryField128> for BinaryField32
Source§type Output = BinaryField128
type Output = BinaryField128
+ operator.Source§impl Add<BinaryField128> for BinaryField64
impl Add<BinaryField128> for BinaryField64
Source§type Output = BinaryField128
type Output = BinaryField128
+ operator.Source§impl Add<BinaryField128> for Ghash128
impl Add<BinaryField128> for Ghash128
Source§impl Add<BinaryField128> for BinaryField2
impl Add<BinaryField128> for BinaryField2
Source§type Output = BinaryField128
type Output = BinaryField128
+ operator.Source§impl Add<BinaryField128> for Gf2
impl Add<BinaryField128> for Gf2
Source§type Output = BinaryField128
type Output = BinaryField128
+ operator.Source§impl Add<Gf2> for BinaryField128
impl Add<Gf2> for BinaryField128
Source§impl<T: Into<Self>> AddAssign<T> for BinaryField128
impl<T: Into<Self>> AddAssign<T> for BinaryField128
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
+= operation. Read moreSource§impl Algebra<BinaryField2> for BinaryField128
impl Algebra<BinaryField2> for BinaryField128
Source§fn quadratic_extension_square(a: &[Self; 2], w: F) -> [Self; 2]
fn quadratic_extension_square(a: &[Self; 2], w: F) -> [Self; 2]
Source§fn mixed_dot_product<const N: usize>(a: &[Self; N], f: &[F; N]) -> Selfwhere
F: Dup,
fn mixed_dot_product<const N: usize>(a: &[Self; N], f: &[F; N]) -> Selfwhere
F: Dup,
Source§const BATCHED_LC_CHUNK: usize = 8
const BATCHED_LC_CHUNK: usize = 8
batched_linear_combination. Read moreSource§impl Algebra<BinaryField8> for BinaryField128
impl Algebra<BinaryField8> for BinaryField128
Source§fn quadratic_extension_square(a: &[Self; 2], w: F) -> [Self; 2]
fn quadratic_extension_square(a: &[Self; 2], w: F) -> [Self; 2]
Source§fn mixed_dot_product<const N: usize>(a: &[Self; N], f: &[F; N]) -> Selfwhere
F: Dup,
fn mixed_dot_product<const N: usize>(a: &[Self; N], f: &[F; N]) -> Selfwhere
F: Dup,
Source§const BATCHED_LC_CHUNK: usize = 8
const BATCHED_LC_CHUNK: usize = 8
batched_linear_combination. Read moreSource§impl Algebra<BinaryField16> for BinaryField128
impl Algebra<BinaryField16> for BinaryField128
Source§fn quadratic_extension_square(a: &[Self; 2], w: F) -> [Self; 2]
fn quadratic_extension_square(a: &[Self; 2], w: F) -> [Self; 2]
Source§fn mixed_dot_product<const N: usize>(a: &[Self; N], f: &[F; N]) -> Selfwhere
F: Dup,
fn mixed_dot_product<const N: usize>(a: &[Self; N], f: &[F; N]) -> Selfwhere
F: Dup,
Source§const BATCHED_LC_CHUNK: usize = 8
const BATCHED_LC_CHUNK: usize = 8
batched_linear_combination. Read moreSource§impl Algebra<BinaryField32> for BinaryField128
impl Algebra<BinaryField32> for BinaryField128
Source§fn quadratic_extension_square(a: &[Self; 2], w: F) -> [Self; 2]
fn quadratic_extension_square(a: &[Self; 2], w: F) -> [Self; 2]
Source§fn mixed_dot_product<const N: usize>(a: &[Self; N], f: &[F; N]) -> Selfwhere
F: Dup,
fn mixed_dot_product<const N: usize>(a: &[Self; N], f: &[F; N]) -> Selfwhere
F: Dup,
Source§const BATCHED_LC_CHUNK: usize = 8
const BATCHED_LC_CHUNK: usize = 8
batched_linear_combination. Read moreSource§impl Algebra<BinaryField64> for BinaryField128
impl Algebra<BinaryField64> for BinaryField128
Source§fn quadratic_extension_square(a: &[Self; 2], w: F) -> [Self; 2]
fn quadratic_extension_square(a: &[Self; 2], w: F) -> [Self; 2]
Source§fn mixed_dot_product<const N: usize>(a: &[Self; N], f: &[F; N]) -> Selfwhere
F: Dup,
fn mixed_dot_product<const N: usize>(a: &[Self; N], f: &[F; N]) -> Selfwhere
F: Dup,
Source§const BATCHED_LC_CHUNK: usize = 8
const BATCHED_LC_CHUNK: usize = 8
batched_linear_combination. Read moreSource§impl Algebra<BinaryField128> for Ghash128
impl Algebra<BinaryField128> for Ghash128
Source§fn quadratic_extension_square(a: &[Self; 2], w: F) -> [Self; 2]
fn quadratic_extension_square(a: &[Self; 2], w: F) -> [Self; 2]
Source§fn mixed_dot_product<const N: usize>(a: &[Self; N], f: &[F; N]) -> Selfwhere
F: Dup,
fn mixed_dot_product<const N: usize>(a: &[Self; N], f: &[F; N]) -> Selfwhere
F: Dup,
Source§const BATCHED_LC_CHUNK: usize = 8
const BATCHED_LC_CHUNK: usize = 8
batched_linear_combination. Read moreSource§impl Algebra<Gf2> for BinaryField128
impl Algebra<Gf2> for BinaryField128
Source§fn quadratic_extension_square(a: &[Self; 2], w: F) -> [Self; 2]
fn quadratic_extension_square(a: &[Self; 2], w: F) -> [Self; 2]
Source§fn mixed_dot_product<const N: usize>(a: &[Self; N], f: &[F; N]) -> Selfwhere
F: Dup,
fn mixed_dot_product<const N: usize>(a: &[Self; N], f: &[F; N]) -> Selfwhere
F: Dup,
Source§const BATCHED_LC_CHUNK: usize = 8
const BATCHED_LC_CHUNK: usize = 8
batched_linear_combination. Read moreSource§impl AlgebraIdentity<BinaryField8> for BinaryField128
impl AlgebraIdentity<BinaryField8> for BinaryField128
Source§impl BasedVectorSpace<BinaryField8> for BinaryField128
impl BasedVectorSpace<BinaryField8> for BinaryField128
Source§fn flatten_to_base(vec: Vec<Self>) -> Vec<BinaryField8>
fn flatten_to_base(vec: Vec<Self>) -> Vec<BinaryField8>
A whole vector of elements is one contiguous run of coefficients, for the same reason a single element is, so the flattening is a single copy of the buffer.
The inverse direction is not symmetric: a Vec<$lower> is allocated at $lower’s
alignment, which is weaker than $upper’s, so freeing it under a Layout whose
alignment differs from the one it was made with would be undefined behaviour.
reconstitute_from_base below instead copies into a freshly allocated buffer at
$upper’s own alignment.
Source§const DIMENSION: usize
const DIMENSION: usize
Source§fn as_basis_coefficients_slice(&self) -> &[BinaryField8]
fn as_basis_coefficients_slice(&self) -> &[BinaryField8]
A and uses this to
map an element of A to a slice of DIMENSION F elements. Read moreSource§fn from_basis_coefficients_fn<Fn: FnMut(usize) -> BinaryField8>(f: Fn) -> Self
fn from_basis_coefficients_fn<Fn: FnMut(usize) -> BinaryField8>(f: Fn) -> Self
A and uses this to
map DIMENSION F elements to an element of A. Similar
to core:array::from_fn, the DIMENSION F elements are
given by Fn(0), ..., Fn(DIMENSION - 1) called in that order. Read moreSource§fn from_basis_coefficients_iter<I: ExactSizeIterator<Item = BinaryField8>>(
iter: I,
) -> Option<Self>
fn from_basis_coefficients_iter<I: ExactSizeIterator<Item = BinaryField8>>( iter: I, ) -> Option<Self>
A and uses this to
map DIMENSION F elements to an element of A. Read moreSource§fn reconstitute_from_base(vec: Vec<BinaryField8>) -> Vec<Self>
fn reconstitute_from_base(vec: Vec<BinaryField8>) -> Vec<Self>
Source§impl BasedVectorSpace<BinaryField16> for BinaryField128
impl BasedVectorSpace<BinaryField16> for BinaryField128
Source§fn flatten_to_base(vec: Vec<Self>) -> Vec<BinaryField16>
fn flatten_to_base(vec: Vec<Self>) -> Vec<BinaryField16>
A whole vector of elements is one contiguous run of coefficients, for the same reason a single element is, so the flattening is a single copy of the buffer.
The inverse direction is not symmetric: a Vec<$lower> is allocated at $lower’s
alignment, which is weaker than $upper’s, so freeing it under a Layout whose
alignment differs from the one it was made with would be undefined behaviour.
reconstitute_from_base below instead copies into a freshly allocated buffer at
$upper’s own alignment.
Source§const DIMENSION: usize
const DIMENSION: usize
Source§fn as_basis_coefficients_slice(&self) -> &[BinaryField16]
fn as_basis_coefficients_slice(&self) -> &[BinaryField16]
A and uses this to
map an element of A to a slice of DIMENSION F elements. Read moreSource§fn from_basis_coefficients_fn<Fn: FnMut(usize) -> BinaryField16>(f: Fn) -> Self
fn from_basis_coefficients_fn<Fn: FnMut(usize) -> BinaryField16>(f: Fn) -> Self
A and uses this to
map DIMENSION F elements to an element of A. Similar
to core:array::from_fn, the DIMENSION F elements are
given by Fn(0), ..., Fn(DIMENSION - 1) called in that order. Read moreSource§fn from_basis_coefficients_iter<I: ExactSizeIterator<Item = BinaryField16>>(
iter: I,
) -> Option<Self>
fn from_basis_coefficients_iter<I: ExactSizeIterator<Item = BinaryField16>>( iter: I, ) -> Option<Self>
A and uses this to
map DIMENSION F elements to an element of A. Read moreSource§fn reconstitute_from_base(vec: Vec<BinaryField16>) -> Vec<Self>
fn reconstitute_from_base(vec: Vec<BinaryField16>) -> Vec<Self>
Source§impl BasedVectorSpace<BinaryField32> for BinaryField128
impl BasedVectorSpace<BinaryField32> for BinaryField128
Source§fn flatten_to_base(vec: Vec<Self>) -> Vec<BinaryField32>
fn flatten_to_base(vec: Vec<Self>) -> Vec<BinaryField32>
A whole vector of elements is one contiguous run of coefficients, for the same reason a single element is, so the flattening is a single copy of the buffer.
The inverse direction is not symmetric: a Vec<$lower> is allocated at $lower’s
alignment, which is weaker than $upper’s, so freeing it under a Layout whose
alignment differs from the one it was made with would be undefined behaviour.
reconstitute_from_base below instead copies into a freshly allocated buffer at
$upper’s own alignment.
Source§const DIMENSION: usize
const DIMENSION: usize
Source§fn as_basis_coefficients_slice(&self) -> &[BinaryField32]
fn as_basis_coefficients_slice(&self) -> &[BinaryField32]
A and uses this to
map an element of A to a slice of DIMENSION F elements. Read moreSource§fn from_basis_coefficients_fn<Fn: FnMut(usize) -> BinaryField32>(f: Fn) -> Self
fn from_basis_coefficients_fn<Fn: FnMut(usize) -> BinaryField32>(f: Fn) -> Self
A and uses this to
map DIMENSION F elements to an element of A. Similar
to core:array::from_fn, the DIMENSION F elements are
given by Fn(0), ..., Fn(DIMENSION - 1) called in that order. Read moreSource§fn from_basis_coefficients_iter<I: ExactSizeIterator<Item = BinaryField32>>(
iter: I,
) -> Option<Self>
fn from_basis_coefficients_iter<I: ExactSizeIterator<Item = BinaryField32>>( iter: I, ) -> Option<Self>
A and uses this to
map DIMENSION F elements to an element of A. Read moreSource§fn reconstitute_from_base(vec: Vec<BinaryField32>) -> Vec<Self>
fn reconstitute_from_base(vec: Vec<BinaryField32>) -> Vec<Self>
Source§impl BasedVectorSpace<BinaryField64> for BinaryField128
impl BasedVectorSpace<BinaryField64> for BinaryField128
Source§fn flatten_to_base(vec: Vec<Self>) -> Vec<BinaryField64>
fn flatten_to_base(vec: Vec<Self>) -> Vec<BinaryField64>
A whole vector of elements is one contiguous run of coefficients, for the same reason a single element is, so the flattening is a single copy of the buffer.
The inverse direction is not symmetric: a Vec<$lower> is allocated at $lower’s
alignment, which is weaker than $upper’s, so freeing it under a Layout whose
alignment differs from the one it was made with would be undefined behaviour.
reconstitute_from_base below instead copies into a freshly allocated buffer at
$upper’s own alignment.
Source§const DIMENSION: usize
const DIMENSION: usize
Source§fn as_basis_coefficients_slice(&self) -> &[BinaryField64]
fn as_basis_coefficients_slice(&self) -> &[BinaryField64]
A and uses this to
map an element of A to a slice of DIMENSION F elements. Read moreSource§fn from_basis_coefficients_fn<Fn: FnMut(usize) -> BinaryField64>(f: Fn) -> Self
fn from_basis_coefficients_fn<Fn: FnMut(usize) -> BinaryField64>(f: Fn) -> Self
A and uses this to
map DIMENSION F elements to an element of A. Similar
to core:array::from_fn, the DIMENSION F elements are
given by Fn(0), ..., Fn(DIMENSION - 1) called in that order. Read moreSource§fn from_basis_coefficients_iter<I: ExactSizeIterator<Item = BinaryField64>>(
iter: I,
) -> Option<Self>
fn from_basis_coefficients_iter<I: ExactSizeIterator<Item = BinaryField64>>( iter: I, ) -> Option<Self>
A and uses this to
map DIMENSION F elements to an element of A. Read moreSource§fn reconstitute_from_base(vec: Vec<BinaryField64>) -> Vec<Self>
fn reconstitute_from_base(vec: Vec<BinaryField64>) -> Vec<Self>
Source§impl Clone for BinaryField128
impl Clone for BinaryField128
impl Copy for BinaryField128
Source§impl Debug for BinaryField128
impl Debug for BinaryField128
Source§impl Default for BinaryField128
impl Default for BinaryField128
Source§impl<'de> Deserialize<'de> for BinaryField128
impl<'de> Deserialize<'de> for BinaryField128
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Source§impl Display for BinaryField128
impl Display for BinaryField128
Source§impl Distribution<BinaryField128> for StandardUniform
impl Distribution<BinaryField128> for StandardUniform
Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> BinaryField128
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> BinaryField128
T, using rng as the source of randomness.Source§impl Div for BinaryField128
impl Div for BinaryField128
Source§type Output = BinaryField128
type Output = BinaryField128
/ operator.Source§fn div(self, rhs: BinaryField128) -> Self
fn div(self, rhs: BinaryField128) -> Self
/ operation. Read moreSource§impl DivAssign for BinaryField128
impl DivAssign for BinaryField128
Source§fn div_assign(&mut self, rhs: BinaryField128)
fn div_assign(&mut self, rhs: BinaryField128)
/= operation. Read moreimpl Eq for BinaryField128
Source§impl ExtensionField<BinaryField8> for BinaryField128
impl ExtensionField<BinaryField8> for BinaryField128
type ExtensionPacking = BinaryField128
Source§fn is_in_basefield(&self) -> bool
fn is_in_basefield(&self) -> bool
Source§fn as_base(&self) -> Option<BinaryField8>
fn as_base(&self) -> Option<BinaryField8>
Source§fn from_ext_basis_coefficients(coeffs: &[Self]) -> Option<Self>
fn from_ext_basis_coefficients(coeffs: &[Self]) -> Option<Self>
Self from D = DIMENSION coefficients in Self
via Σⱼ basisⱼ · coeffsⱼ. Returns None if coeffs.len() != Self::DIMENSION. Read moreSource§impl ExtensionField<BinaryField16> for BinaryField128
impl ExtensionField<BinaryField16> for BinaryField128
type ExtensionPacking = BinaryField128
Source§fn is_in_basefield(&self) -> bool
fn is_in_basefield(&self) -> bool
Source§fn as_base(&self) -> Option<BinaryField16>
fn as_base(&self) -> Option<BinaryField16>
Source§fn from_ext_basis_coefficients(coeffs: &[Self]) -> Option<Self>
fn from_ext_basis_coefficients(coeffs: &[Self]) -> Option<Self>
Self from D = DIMENSION coefficients in Self
via Σⱼ basisⱼ · coeffsⱼ. Returns None if coeffs.len() != Self::DIMENSION. Read moreSource§impl ExtensionField<BinaryField32> for BinaryField128
impl ExtensionField<BinaryField32> for BinaryField128
type ExtensionPacking = BinaryField128
Source§fn is_in_basefield(&self) -> bool
fn is_in_basefield(&self) -> bool
Source§fn as_base(&self) -> Option<BinaryField32>
fn as_base(&self) -> Option<BinaryField32>
Source§fn from_ext_basis_coefficients(coeffs: &[Self]) -> Option<Self>
fn from_ext_basis_coefficients(coeffs: &[Self]) -> Option<Self>
Self from D = DIMENSION coefficients in Self
via Σⱼ basisⱼ · coeffsⱼ. Returns None if coeffs.len() != Self::DIMENSION. Read moreSource§impl ExtensionField<BinaryField64> for BinaryField128
impl ExtensionField<BinaryField64> for BinaryField128
type ExtensionPacking = BinaryField128
Source§fn is_in_basefield(&self) -> bool
fn is_in_basefield(&self) -> bool
Source§fn as_base(&self) -> Option<BinaryField64>
fn as_base(&self) -> Option<BinaryField64>
Source§fn from_ext_basis_coefficients(coeffs: &[Self]) -> Option<Self>
fn from_ext_basis_coefficients(coeffs: &[Self]) -> Option<Self>
Self from D = DIMENSION coefficients in Self
via Σⱼ basisⱼ · coeffsⱼ. Returns None if coeffs.len() != Self::DIMENSION. Read moreSource§impl Field for BinaryField128
impl Field for BinaryField128
Source§fn interpolation_node(i: usize) -> Self
fn interpolation_node(i: usize) -> Self
The enumeration by bit pattern: interpolation_node(i) is the element whose
coefficients over GF(2) are the bits of i. It is injective for i < 2^BITS.
§Panics
Panics if i >= 2^BITS. from_repr masks, so an out-of-range index would
otherwise alias an earlier node in release builds and break an interpolation
argument silently; the check is paid once per node at setup, never in a loop.
type Packing = BinaryField128
Source§fn try_inverse(&self) -> Option<Self>
fn try_inverse(&self) -> Option<Self>
Source§fn try_sqrt(&self) -> Option<Self>
fn try_sqrt(&self) -> Option<Self>
Source§const BENEFITS_FROM_LOCKSTEP_EVALUATION: bool = false
const BENEFITS_FROM_LOCKSTEP_EVALUATION: bool = false
Source§fn is_zero(&self) -> bool
fn is_zero(&self) -> bool
Source§fn is_one(&self) -> bool
fn is_one(&self) -> bool
Source§fn add_slices(slice_1: &mut [Self], slice_2: &[Self])
fn add_slices(slice_1: &mut [Self], slice_2: &[Self])
Source§fn batched_columnwise_dot_product<EF, R, I, const N: usize>(
acc: &mut [<EF as ExtensionField<Self>>::ExtensionPacking],
items: I,
)where
EF: ExtensionField<Self>,
R: Iterator<Item = Self::Packing>,
I: Iterator<Item = (R, [EF; N])>,
fn batched_columnwise_dot_product<EF, R, I, const N: usize>(
acc: &mut [<EF as ExtensionField<Self>>::ExtensionPacking],
items: I,
)where
EF: ExtensionField<Self>,
R: Iterator<Item = Self::Packing>,
I: Iterator<Item = (R, [EF; N])>,
acc[c * N + j] += scales[j] * row[c] over a stream of packed rows. Read moreSource§impl From<BinaryField2> for BinaryField128
impl From<BinaryField2> for BinaryField128
Source§fn from(x: BinaryField2) -> Self
fn from(x: BinaryField2) -> Self
GF(4) occupies the low two bits; every other coefficient vanishes.
Source§impl From<BinaryField8> for BinaryField128
impl From<BinaryField8> for BinaryField128
Source§fn from(x: BinaryField8) -> Self
fn from(x: BinaryField8) -> Self
The lower level occupies the low BITS bits; the other coefficients vanish.
Source§impl From<BinaryField16> for BinaryField128
impl From<BinaryField16> for BinaryField128
Source§fn from(x: BinaryField16) -> Self
fn from(x: BinaryField16) -> Self
The lower level occupies the low BITS bits; the other coefficients vanish.
Source§impl From<BinaryField32> for BinaryField128
impl From<BinaryField32> for BinaryField128
Source§fn from(x: BinaryField32) -> Self
fn from(x: BinaryField32) -> Self
The lower level occupies the low BITS bits; the other coefficients vanish.
Source§impl From<BinaryField64> for BinaryField128
impl From<BinaryField64> for BinaryField128
Source§fn from(x: BinaryField64) -> Self
fn from(x: BinaryField64) -> Self
The lower level occupies the low BITS bits; the other coefficients vanish.
Source§impl From<BinaryField128> for Ghash128
impl From<BinaryField128> for Ghash128
Source§fn from(x: BinaryField128) -> Self
fn from(x: BinaryField128) -> Self
The same field element, seen in the polynomial basis.
Source§impl From<Gf2> for BinaryField128
impl From<Gf2> for BinaryField128
Source§impl From<Ghash128> for BinaryField128
impl From<Ghash128> for BinaryField128
Source§impl HasFrobenius<BinaryField8> for BinaryField128
impl HasFrobenius<BinaryField8> for BinaryField128
Source§fn repeated_frobenius(&self, count: usize) -> Self
fn repeated_frobenius(&self, count: usize) -> Self
count times. Read moreSource§fn pseudo_inv(&self) -> Self
fn pseudo_inv(&self) -> Self
Source§fn galois_orbit(self) -> Vec<Self>
fn galois_orbit(self) -> Vec<Self>
Source§impl HasFrobenius<BinaryField16> for BinaryField128
impl HasFrobenius<BinaryField16> for BinaryField128
Source§fn repeated_frobenius(&self, count: usize) -> Self
fn repeated_frobenius(&self, count: usize) -> Self
count times. Read moreSource§fn pseudo_inv(&self) -> Self
fn pseudo_inv(&self) -> Self
Source§fn galois_orbit(self) -> Vec<Self>
fn galois_orbit(self) -> Vec<Self>
Source§impl HasFrobenius<BinaryField32> for BinaryField128
impl HasFrobenius<BinaryField32> for BinaryField128
Source§fn repeated_frobenius(&self, count: usize) -> Self
fn repeated_frobenius(&self, count: usize) -> Self
count times. Read moreSource§fn pseudo_inv(&self) -> Self
fn pseudo_inv(&self) -> Self
Source§fn galois_orbit(self) -> Vec<Self>
fn galois_orbit(self) -> Vec<Self>
Source§impl HasFrobenius<BinaryField64> for BinaryField128
impl HasFrobenius<BinaryField64> for BinaryField128
Source§fn repeated_frobenius(&self, count: usize) -> Self
fn repeated_frobenius(&self, count: usize) -> Self
count times. Read moreSource§fn pseudo_inv(&self) -> Self
fn pseudo_inv(&self) -> Self
Source§fn galois_orbit(self) -> Vec<Self>
fn galois_orbit(self) -> Vec<Self>
Source§impl HasSubfield<BinaryField2> for BinaryField128
impl HasSubfield<BinaryField2> for BinaryField128
Source§fn as_subfield(&self) -> Option<BinaryField2>
fn as_subfield(&self) -> Option<BinaryField2>
An element lies in GF(4) exactly when no bit above the lowest two is set.
Source§fn all_in_subfield(values: &[Self]) -> bool
fn all_in_subfield(values: &[Self]) -> bool
The bits above the lowest two, OR-ed across the slice, vanish exactly when every element
lies in GF(4).
The fold has no early exit, so the loop has no data-dependent branch.
Source§impl Hash for BinaryField128
impl Hash for BinaryField128
Source§impl Mul for BinaryField128
impl Mul for BinaryField128
Source§impl Mul<BinaryField2> for BinaryField128
impl Mul<BinaryField2> for BinaryField128
Source§fn mul(self, rhs: BinaryField2) -> Self
fn mul(self, rhs: BinaryField2) -> Self
x·(c0 + c1·X_0) = c0·x + c1·(X_0·x).
Each coefficient of the scalar selects its term through an all-ones or all-zeros mask, so there is no product and no branch on the scalar.
Source§type Output = BinaryField128
type Output = BinaryField128
* operator.Source§impl Mul<BinaryField8> for BinaryField128
impl Mul<BinaryField8> for BinaryField128
Source§type Output = BinaryField128
type Output = BinaryField128
* operator.Source§fn mul(self, rhs: BinaryField8) -> Self
fn mul(self, rhs: BinaryField8) -> Self
* operation. Read moreSource§impl Mul<BinaryField16> for BinaryField128
impl Mul<BinaryField16> for BinaryField128
Source§type Output = BinaryField128
type Output = BinaryField128
* operator.Source§fn mul(self, rhs: BinaryField16) -> Self
fn mul(self, rhs: BinaryField16) -> Self
* operation. Read moreSource§impl Mul<BinaryField32> for BinaryField128
impl Mul<BinaryField32> for BinaryField128
Source§type Output = BinaryField128
type Output = BinaryField128
* operator.Source§fn mul(self, rhs: BinaryField32) -> Self
fn mul(self, rhs: BinaryField32) -> Self
* operation. Read moreSource§impl Mul<BinaryField64> for BinaryField128
impl Mul<BinaryField64> for BinaryField128
Source§type Output = BinaryField128
type Output = BinaryField128
* operator.Source§fn mul(self, rhs: BinaryField64) -> Self
fn mul(self, rhs: BinaryField64) -> Self
* operation. Read moreSource§impl Mul<BinaryField128> for BinaryField8
impl Mul<BinaryField128> for BinaryField8
Source§type Output = BinaryField128
type Output = BinaryField128
* operator.Source§fn mul(self, rhs: BinaryField128) -> BinaryField128
fn mul(self, rhs: BinaryField128) -> BinaryField128
* operation. Read moreSource§impl Mul<BinaryField128> for BinaryField16
impl Mul<BinaryField128> for BinaryField16
Source§type Output = BinaryField128
type Output = BinaryField128
* operator.Source§fn mul(self, rhs: BinaryField128) -> BinaryField128
fn mul(self, rhs: BinaryField128) -> BinaryField128
* operation. Read moreSource§impl Mul<BinaryField128> for BinaryField32
impl Mul<BinaryField128> for BinaryField32
Source§type Output = BinaryField128
type Output = BinaryField128
* operator.Source§fn mul(self, rhs: BinaryField128) -> BinaryField128
fn mul(self, rhs: BinaryField128) -> BinaryField128
* operation. Read moreSource§impl Mul<BinaryField128> for BinaryField64
impl Mul<BinaryField128> for BinaryField64
Source§type Output = BinaryField128
type Output = BinaryField128
* operator.Source§fn mul(self, rhs: BinaryField128) -> BinaryField128
fn mul(self, rhs: BinaryField128) -> BinaryField128
* operation. Read moreSource§impl Mul<BinaryField128> for Ghash128
impl Mul<BinaryField128> for Ghash128
Source§impl Mul<BinaryField128> for BinaryField2
impl Mul<BinaryField128> for BinaryField2
Source§type Output = BinaryField128
type Output = BinaryField128
* operator.Source§fn mul(self, rhs: BinaryField128) -> BinaryField128
fn mul(self, rhs: BinaryField128) -> BinaryField128
* operation. Read moreSource§impl Mul<BinaryField128> for Gf2
impl Mul<BinaryField128> for Gf2
Source§type Output = BinaryField128
type Output = BinaryField128
* operator.Source§fn mul(self, rhs: BinaryField128) -> BinaryField128
fn mul(self, rhs: BinaryField128) -> BinaryField128
* operation. Read moreSource§impl Mul<Gf2> for BinaryField128
impl Mul<Gf2> for BinaryField128
Source§impl<T: Into<Self>> MulAssign<T> for BinaryField128
impl<T: Into<Self>> MulAssign<T> for BinaryField128
Source§fn mul_assign(&mut self, rhs: T)
fn mul_assign(&mut self, rhs: T)
*= operation. Read moreSource§impl Neg for BinaryField128
impl Neg for BinaryField128
Source§impl Ord for BinaryField128
impl Ord for BinaryField128
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
impl Packable for BinaryField128
Source§impl PackedFieldExtension<BinaryField8, BinaryField128> for BinaryField128
A tower level packs one element per vector, so every lane index is 0.
impl PackedFieldExtension<BinaryField8, BinaryField128> for BinaryField128
A tower level packs one element per vector, so every lane index is 0.
Source§fn from_ext_fn(f: impl Fn(usize) -> Self) -> Self
fn from_ext_fn(f: impl Fn(usize) -> Self) -> Self
f to each lane. Read moreSource§fn from_ext_slice(slice: &[Self]) -> Self
fn from_ext_slice(slice: &[Self]) -> Self
WIDTH slice of extension field elements into one packed extension. Read moreSource§fn extract(&self, lane: usize) -> Self
fn extract(&self, lane: usize) -> Self
Source§fn add_assign_lane(&mut self, lane: usize, value: Self)
fn add_assign_lane(&mut self, lane: usize, value: Self)
Source§fn packed_ext_powers(base: Self) -> Powers<Self> ⓘ
fn packed_ext_powers(base: Self) -> Powers<Self> ⓘ
packed_powers, construct an iterator which returns
powers of base packed into PackedFieldExtension elements.Source§fn pack_ext_columns<const N: usize>(rows: &[[ExtField; N]]) -> [Self; N]
fn pack_ext_columns<const N: usize>(rows: &[[ExtField; N]]) -> [Self; N]
Source§fn pack_ext_columns_fn<const N: usize>(
row_fn: impl Fn(usize) -> [ExtField; N],
) -> [Self; N]
fn pack_ext_columns_fn<const N: usize>( row_fn: impl Fn(usize) -> [ExtField; N], ) -> [Self; N]
N columns using a closure that produces each row. Read moreSource§fn to_ext_slice(&self, out: &mut [ExtField])
fn to_ext_slice(&self, out: &mut [ExtField])
W lanes into the given slice. Read moreSource§fn unpack_ext_into<const N: usize>(
packed: &[Self; N],
rows: &mut [[ExtField; N]],
)
fn unpack_ext_into<const N: usize>( packed: &[Self; N], rows: &mut [[ExtField; N]], )
Source§fn unpack_ext_iter<const N: usize>(
packed: [Self; N],
) -> impl Iterator<Item = [ExtField; N]>
fn unpack_ext_iter<const N: usize>( packed: [Self; N], ) -> impl Iterator<Item = [ExtField; N]>
PackedFieldExtension::unpack_ext_into. Read moreSource§fn to_ext_iter(
iter: impl IntoIterator<Item = Self>,
) -> impl Iterator<Item = ExtField>
fn to_ext_iter( iter: impl IntoIterator<Item = Self>, ) -> impl Iterator<Item = ExtField>
ExtField per lane per packed value).Source§fn unpack_transpose_into(src: &[Self], dst: &mut [ExtField], src_width: usize)
fn unpack_transpose_into(src: &[Self], dst: &mut [ExtField], src_width: usize)
Source§impl PackedFieldExtension<BinaryField16, BinaryField128> for BinaryField128
A tower level packs one element per vector, so every lane index is 0.
impl PackedFieldExtension<BinaryField16, BinaryField128> for BinaryField128
A tower level packs one element per vector, so every lane index is 0.
Source§fn from_ext_fn(f: impl Fn(usize) -> Self) -> Self
fn from_ext_fn(f: impl Fn(usize) -> Self) -> Self
f to each lane. Read moreSource§fn from_ext_slice(slice: &[Self]) -> Self
fn from_ext_slice(slice: &[Self]) -> Self
WIDTH slice of extension field elements into one packed extension. Read moreSource§fn extract(&self, lane: usize) -> Self
fn extract(&self, lane: usize) -> Self
Source§fn add_assign_lane(&mut self, lane: usize, value: Self)
fn add_assign_lane(&mut self, lane: usize, value: Self)
Source§fn packed_ext_powers(base: Self) -> Powers<Self> ⓘ
fn packed_ext_powers(base: Self) -> Powers<Self> ⓘ
packed_powers, construct an iterator which returns
powers of base packed into PackedFieldExtension elements.Source§fn pack_ext_columns<const N: usize>(rows: &[[ExtField; N]]) -> [Self; N]
fn pack_ext_columns<const N: usize>(rows: &[[ExtField; N]]) -> [Self; N]
Source§fn pack_ext_columns_fn<const N: usize>(
row_fn: impl Fn(usize) -> [ExtField; N],
) -> [Self; N]
fn pack_ext_columns_fn<const N: usize>( row_fn: impl Fn(usize) -> [ExtField; N], ) -> [Self; N]
N columns using a closure that produces each row. Read moreSource§fn to_ext_slice(&self, out: &mut [ExtField])
fn to_ext_slice(&self, out: &mut [ExtField])
W lanes into the given slice. Read moreSource§fn unpack_ext_into<const N: usize>(
packed: &[Self; N],
rows: &mut [[ExtField; N]],
)
fn unpack_ext_into<const N: usize>( packed: &[Self; N], rows: &mut [[ExtField; N]], )
Source§fn unpack_ext_iter<const N: usize>(
packed: [Self; N],
) -> impl Iterator<Item = [ExtField; N]>
fn unpack_ext_iter<const N: usize>( packed: [Self; N], ) -> impl Iterator<Item = [ExtField; N]>
PackedFieldExtension::unpack_ext_into. Read moreSource§fn to_ext_iter(
iter: impl IntoIterator<Item = Self>,
) -> impl Iterator<Item = ExtField>
fn to_ext_iter( iter: impl IntoIterator<Item = Self>, ) -> impl Iterator<Item = ExtField>
ExtField per lane per packed value).Source§fn unpack_transpose_into(src: &[Self], dst: &mut [ExtField], src_width: usize)
fn unpack_transpose_into(src: &[Self], dst: &mut [ExtField], src_width: usize)
Source§impl PackedFieldExtension<BinaryField32, BinaryField128> for BinaryField128
A tower level packs one element per vector, so every lane index is 0.
impl PackedFieldExtension<BinaryField32, BinaryField128> for BinaryField128
A tower level packs one element per vector, so every lane index is 0.
Source§fn from_ext_fn(f: impl Fn(usize) -> Self) -> Self
fn from_ext_fn(f: impl Fn(usize) -> Self) -> Self
f to each lane. Read moreSource§fn from_ext_slice(slice: &[Self]) -> Self
fn from_ext_slice(slice: &[Self]) -> Self
WIDTH slice of extension field elements into one packed extension. Read moreSource§fn extract(&self, lane: usize) -> Self
fn extract(&self, lane: usize) -> Self
Source§fn add_assign_lane(&mut self, lane: usize, value: Self)
fn add_assign_lane(&mut self, lane: usize, value: Self)
Source§fn packed_ext_powers(base: Self) -> Powers<Self> ⓘ
fn packed_ext_powers(base: Self) -> Powers<Self> ⓘ
packed_powers, construct an iterator which returns
powers of base packed into PackedFieldExtension elements.Source§fn pack_ext_columns<const N: usize>(rows: &[[ExtField; N]]) -> [Self; N]
fn pack_ext_columns<const N: usize>(rows: &[[ExtField; N]]) -> [Self; N]
Source§fn pack_ext_columns_fn<const N: usize>(
row_fn: impl Fn(usize) -> [ExtField; N],
) -> [Self; N]
fn pack_ext_columns_fn<const N: usize>( row_fn: impl Fn(usize) -> [ExtField; N], ) -> [Self; N]
N columns using a closure that produces each row. Read moreSource§fn to_ext_slice(&self, out: &mut [ExtField])
fn to_ext_slice(&self, out: &mut [ExtField])
W lanes into the given slice. Read moreSource§fn unpack_ext_into<const N: usize>(
packed: &[Self; N],
rows: &mut [[ExtField; N]],
)
fn unpack_ext_into<const N: usize>( packed: &[Self; N], rows: &mut [[ExtField; N]], )
Source§fn unpack_ext_iter<const N: usize>(
packed: [Self; N],
) -> impl Iterator<Item = [ExtField; N]>
fn unpack_ext_iter<const N: usize>( packed: [Self; N], ) -> impl Iterator<Item = [ExtField; N]>
PackedFieldExtension::unpack_ext_into. Read moreSource§fn to_ext_iter(
iter: impl IntoIterator<Item = Self>,
) -> impl Iterator<Item = ExtField>
fn to_ext_iter( iter: impl IntoIterator<Item = Self>, ) -> impl Iterator<Item = ExtField>
ExtField per lane per packed value).Source§fn unpack_transpose_into(src: &[Self], dst: &mut [ExtField], src_width: usize)
fn unpack_transpose_into(src: &[Self], dst: &mut [ExtField], src_width: usize)
Source§impl PackedFieldExtension<BinaryField64, BinaryField128> for BinaryField128
A tower level packs one element per vector, so every lane index is 0.
impl PackedFieldExtension<BinaryField64, BinaryField128> for BinaryField128
A tower level packs one element per vector, so every lane index is 0.
Source§fn from_ext_fn(f: impl Fn(usize) -> Self) -> Self
fn from_ext_fn(f: impl Fn(usize) -> Self) -> Self
f to each lane. Read moreSource§fn from_ext_slice(slice: &[Self]) -> Self
fn from_ext_slice(slice: &[Self]) -> Self
WIDTH slice of extension field elements into one packed extension. Read moreSource§fn extract(&self, lane: usize) -> Self
fn extract(&self, lane: usize) -> Self
Source§fn add_assign_lane(&mut self, lane: usize, value: Self)
fn add_assign_lane(&mut self, lane: usize, value: Self)
Source§fn packed_ext_powers(base: Self) -> Powers<Self> ⓘ
fn packed_ext_powers(base: Self) -> Powers<Self> ⓘ
packed_powers, construct an iterator which returns
powers of base packed into PackedFieldExtension elements.Source§fn pack_ext_columns<const N: usize>(rows: &[[ExtField; N]]) -> [Self; N]
fn pack_ext_columns<const N: usize>(rows: &[[ExtField; N]]) -> [Self; N]
Source§fn pack_ext_columns_fn<const N: usize>(
row_fn: impl Fn(usize) -> [ExtField; N],
) -> [Self; N]
fn pack_ext_columns_fn<const N: usize>( row_fn: impl Fn(usize) -> [ExtField; N], ) -> [Self; N]
N columns using a closure that produces each row. Read moreSource§fn to_ext_slice(&self, out: &mut [ExtField])
fn to_ext_slice(&self, out: &mut [ExtField])
W lanes into the given slice. Read moreSource§fn unpack_ext_into<const N: usize>(
packed: &[Self; N],
rows: &mut [[ExtField; N]],
)
fn unpack_ext_into<const N: usize>( packed: &[Self; N], rows: &mut [[ExtField; N]], )
Source§fn unpack_ext_iter<const N: usize>(
packed: [Self; N],
) -> impl Iterator<Item = [ExtField; N]>
fn unpack_ext_iter<const N: usize>( packed: [Self; N], ) -> impl Iterator<Item = [ExtField; N]>
PackedFieldExtension::unpack_ext_into. Read moreSource§fn to_ext_iter(
iter: impl IntoIterator<Item = Self>,
) -> impl Iterator<Item = ExtField>
fn to_ext_iter( iter: impl IntoIterator<Item = Self>, ) -> impl Iterator<Item = ExtField>
ExtField per lane per packed value).Source§fn unpack_transpose_into(src: &[Self], dst: &mut [ExtField], src_width: usize)
fn unpack_transpose_into(src: &[Self], dst: &mut [ExtField], src_width: usize)
Source§impl PartialEq for BinaryField128
impl PartialEq for BinaryField128
Source§impl PartialOrd for BinaryField128
impl PartialOrd for BinaryField128
Source§impl PrimeCharacteristicRing for BinaryField128
impl PrimeCharacteristicRing for BinaryField128
Source§fn div_2exp_u64(&self, _exp: u64) -> Self
fn div_2exp_u64(&self, _exp: u64) -> Self
§Panics
Always panics: 2 is not invertible in characteristic 2.
Source§fn bool_check(&self) -> Self
fn bool_check(&self) -> Self
x·(x - 1) = x² - x = x² + x in characteristic 2, and squaring is a linear
map here, so this avoids the tower/polynomial basis changes a general product
pays for.
Source§type PrimeSubfield = Gf2
type PrimeSubfield = Gf2
ℤ/p where the characteristic of this ring is p.Source§fn from_prime_subfield(f: Self::PrimeSubfield) -> Self
fn from_prime_subfield(f: Self::PrimeSubfield) -> Self
Source§fn xor(&self, y: &Self) -> Self
fn xor(&self, y: &Self) -> Self
xor. Read moreSource§fn mul_2exp_u64(&self, exp: u64) -> Self
fn mul_2exp_u64(&self, exp: u64) -> Self
mul_2exp_u64(a, exp) = a * 2^{exp}. Read moreSource§fn exp_power_of_2(&self, power_log: usize) -> Self
fn exp_power_of_2(&self, power_log: usize) -> Self
exp_power_of_2(a, power_log) = a^{2^power_log}. Read moreSource§fn dot_product<const N: usize>(u: &[Self; N], v: &[Self; N]) -> Self
fn dot_product<const N: usize>(u: &[Self; N], v: &[Self; N]) -> Self
Source§fn zero_vec(len: usize) -> Vec<Self>
fn zero_vec(len: usize) -> Vec<Self>
len. Many operating systems zero pages
before assigning them to a userspace process. In that case, our process should not need to
write zeros, which would be redundant. However, the compiler may not always recognize this. Read moreSource§fn from_usize(int: usize) -> Self
fn from_usize(int: usize) -> Self
Source§fn from_isize(int: isize) -> Self
fn from_isize(int: isize) -> Self
Source§fn xor3(&self, y: &Self, z: &Self) -> Self
fn xor3(&self, y: &Self, z: &Self) -> Self
xor. Read moreSource§fn exp_const_u64<const POWER: u64>(&self) -> Self
fn exp_const_u64<const POWER: u64>(&self) -> Self
Source§fn powers(&self) -> Powers<Self> ⓘ
fn powers(&self) -> Powers<Self> ⓘ
self: self^0, self^1, self^2, ....Source§fn shifted_powers(&self, start: Self) -> Powers<Self> ⓘ
fn shifted_powers(&self, start: Self) -> Powers<Self> ⓘ
self shifted by start: start, start*self^1, start*self^2, ....Source§impl Product for BinaryField128
impl Product for BinaryField128
Source§impl RawDataSerializable for BinaryField128
impl RawDataSerializable for BinaryField128
Source§const NUM_BYTES: usize
const NUM_BYTES: usize
Source§fn into_bytes(self) -> [u8; 16]
fn into_bytes(self) -> [u8; 16]
Source§fn into_parallel_byte_streams<const N: usize>(
input: impl IntoIterator<Item = [Self; N]>,
) -> impl IntoIterator<Item = [u8; N]>
fn into_parallel_byte_streams<const N: usize>( input: impl IntoIterator<Item = [Self; N]>, ) -> impl IntoIterator<Item = [u8; N]>
Source§fn into_u64_stream(
input: impl IntoIterator<Item = Self>,
) -> impl IntoIterator<Item = u64>
fn into_u64_stream( input: impl IntoIterator<Item = Self>, ) -> impl IntoIterator<Item = u64>
Source§fn into_parallel_u64_streams<const N: usize>(
input: impl IntoIterator<Item = [Self; N]>,
) -> impl IntoIterator<Item = [u64; N]>
fn into_parallel_u64_streams<const N: usize>( input: impl IntoIterator<Item = [Self; N]>, ) -> impl IntoIterator<Item = [u64; N]>
Source§fn into_byte_stream(
input: impl IntoIterator<Item = Self>,
) -> impl IntoIterator<Item = u8>
fn into_byte_stream( input: impl IntoIterator<Item = Self>, ) -> impl IntoIterator<Item = u8>
Source§fn into_u32_stream(
input: impl IntoIterator<Item = Self>,
) -> impl IntoIterator<Item = u32>
fn into_u32_stream( input: impl IntoIterator<Item = Self>, ) -> impl IntoIterator<Item = u32>
Source§fn into_parallel_u32_streams<const N: usize>(
input: impl IntoIterator<Item = [Self; N]>,
) -> impl IntoIterator<Item = [u32; N]>
fn into_parallel_u32_streams<const N: usize>( input: impl IntoIterator<Item = [Self; N]>, ) -> impl IntoIterator<Item = [u32; N]>
Source§impl Serialize for BinaryField128
impl Serialize for BinaryField128
impl StructuralPartialEq for BinaryField128
Source§impl Sub for BinaryField128
impl Sub for BinaryField128
Source§impl Sub<BinaryField2> for BinaryField128
impl Sub<BinaryField2> for BinaryField128
Source§type Output = BinaryField128
type Output = BinaryField128
- operator.Source§fn sub(self, rhs: BinaryField2) -> Self
fn sub(self, rhs: BinaryField2) -> Self
- operation. Read moreSource§impl Sub<BinaryField8> for BinaryField128
impl Sub<BinaryField8> for BinaryField128
Source§type Output = BinaryField128
type Output = BinaryField128
- operator.Source§fn sub(self, rhs: BinaryField8) -> Self
fn sub(self, rhs: BinaryField8) -> Self
- operation. Read moreSource§impl Sub<BinaryField16> for BinaryField128
impl Sub<BinaryField16> for BinaryField128
Source§type Output = BinaryField128
type Output = BinaryField128
- operator.Source§fn sub(self, rhs: BinaryField16) -> Self
fn sub(self, rhs: BinaryField16) -> Self
- operation. Read moreSource§impl Sub<BinaryField32> for BinaryField128
impl Sub<BinaryField32> for BinaryField128
Source§type Output = BinaryField128
type Output = BinaryField128
- operator.Source§fn sub(self, rhs: BinaryField32) -> Self
fn sub(self, rhs: BinaryField32) -> Self
- operation. Read moreSource§impl Sub<BinaryField64> for BinaryField128
impl Sub<BinaryField64> for BinaryField128
Source§type Output = BinaryField128
type Output = BinaryField128
- operator.Source§fn sub(self, rhs: BinaryField64) -> Self
fn sub(self, rhs: BinaryField64) -> Self
- operation. Read moreSource§impl Sub<BinaryField128> for BinaryField8
impl Sub<BinaryField128> for BinaryField8
Source§type Output = BinaryField128
type Output = BinaryField128
- operator.Source§impl Sub<BinaryField128> for BinaryField16
impl Sub<BinaryField128> for BinaryField16
Source§type Output = BinaryField128
type Output = BinaryField128
- operator.Source§impl Sub<BinaryField128> for BinaryField32
impl Sub<BinaryField128> for BinaryField32
Source§type Output = BinaryField128
type Output = BinaryField128
- operator.Source§impl Sub<BinaryField128> for BinaryField64
impl Sub<BinaryField128> for BinaryField64
Source§type Output = BinaryField128
type Output = BinaryField128
- operator.Source§impl Sub<BinaryField128> for Ghash128
impl Sub<BinaryField128> for Ghash128
Source§impl Sub<BinaryField128> for BinaryField2
impl Sub<BinaryField128> for BinaryField2
Source§type Output = BinaryField128
type Output = BinaryField128
- operator.Source§impl Sub<BinaryField128> for Gf2
impl Sub<BinaryField128> for Gf2
Source§type Output = BinaryField128
type Output = BinaryField128
- operator.Source§impl Sub<Gf2> for BinaryField128
impl Sub<Gf2> for BinaryField128
Source§impl<T: Into<Self>> SubAssign<T> for BinaryField128
impl<T: Into<Self>> SubAssign<T> for BinaryField128
Source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
-= operation. Read moreSource§impl Sum for BinaryField128
impl Sum for BinaryField128
Source§impl TowerLevel for BinaryField128
impl TowerLevel for BinaryField128
Source§fn from_repr(r: Self::Repr) -> Self
fn from_repr(r: Self::Repr) -> Self
2^LOG_BITS.Source§fn from_le_byte_iter(bytes: impl Iterator<Item = u8>) -> Self
fn from_le_byte_iter(bytes: impl Iterator<Item = u8>) -> Self
RawDataSerializable::NUM_BYTES bytes of a
little-endian byte stream, discarding the bits above 2^LOG_BITS. Read moreSource§fn cantor_basis(i: usize) -> Self
fn cantor_basis(i: usize) -> Self
i-th vector of the Cantor basis of this level. Read moreSource§impl TranscriptField for BinaryField128
impl TranscriptField for BinaryField128
Source§fn algebra_tag(degree: usize, basis: [u8; 32]) -> TypeTag
fn algebra_tag(degree: usize, basis: [u8; 32]) -> TypeTag
degree coefficients over this field.
basis is Keccak-256 of its p3_field::AlgebraIdentity bytes and must be
included unchanged in the returned tag.Source§fn observe_seed<C: CanObserve<Self>>(challenger: &mut C, bytes: &[u8])
fn observe_seed<C: CanObserve<Self>>(challenger: &mut C, bytes: &[u8])
Auto Trait Implementations§
impl Freeze for BinaryField128
impl RefUnwindSafe for BinaryField128
impl Send for BinaryField128
impl Sync for BinaryField128
impl Unpin for BinaryField128
impl UnsafeUnpin for BinaryField128
impl UnwindSafe for BinaryField128
Blanket Implementations§
Source§impl<R> Algebra<R> for Rwhere
R: PrimeCharacteristicRing,
impl<R> Algebra<R> for Rwhere
R: PrimeCharacteristicRing,
Source§fn mixed_dot_product<const N: usize>(a: &[R; N], f: &[R; N]) -> R
fn mixed_dot_product<const N: usize>(a: &[R; N], f: &[R; N]) -> R
Source§fn quadratic_extension_square(a: &[Self; 2], w: F) -> [Self; 2]
fn quadratic_extension_square(a: &[Self; 2], w: F) -> [Self; 2]
Source§const BATCHED_LC_CHUNK: usize = 8
const BATCHED_LC_CHUNK: usize = 8
batched_linear_combination. Read moreSource§impl<F> AlgebraIdentity<F> for Fwhere
F: PrimeCharacteristicRing,
impl<F> AlgebraIdentity<F> for Fwhere
F: PrimeCharacteristicRing,
Source§impl<F> BasedVectorSpace<F> for Fwhere
F: PrimeCharacteristicRing,
impl<F> BasedVectorSpace<F> for Fwhere
F: PrimeCharacteristicRing,
Source§const DIMENSION: usize = 1
const DIMENSION: usize = 1
Source§fn as_basis_coefficients_slice(&self) -> &[F]
fn as_basis_coefficients_slice(&self) -> &[F]
A and uses this to
map an element of A to a slice of DIMENSION F elements. Read moreSource§fn from_basis_coefficients_fn<Fn>(f: Fn) -> F
fn from_basis_coefficients_fn<Fn>(f: Fn) -> F
A and uses this to
map DIMENSION F elements to an element of A. Similar
to core:array::from_fn, the DIMENSION F elements are
given by Fn(0), ..., Fn(DIMENSION - 1) called in that order. Read moreSource§fn from_basis_coefficients_iter<I>(iter: I) -> Option<F>where
I: ExactSizeIterator<Item = F>,
fn from_basis_coefficients_iter<I>(iter: I) -> Option<F>where
I: ExactSizeIterator<Item = F>,
A and uses this to
map DIMENSION F elements to an element of A. Read moreSource§fn flatten_to_base(vec: Vec<F>) -> Vec<F>
fn flatten_to_base(vec: Vec<F>) -> Vec<F>
Source§fn reconstitute_from_base(vec: Vec<F>) -> Vec<F>
fn reconstitute_from_base(vec: Vec<F>) -> Vec<F>
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<F> ExtensionField<F> for Fwhere
F: Field,
impl<F> ExtensionField<F> for Fwhere
F: Field,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F> PackedField for Fwhere
F: Field,
impl<F> PackedField for Fwhere
F: Field,
type Scalar = F
Source§fn packed_powers(base: Self::Scalar) -> Powers<Self> ⓘ
fn packed_powers(base: Self::Scalar) -> Powers<Self> ⓘ
base packed into packed field elements. Read more