Expand description
Various simple utilities.
Modules§
Functions§
- apply_
to_ chunks - Split an iterator into small arrays and apply
functo each. - as_
base_ ⚠slice - Reinterpret a slice of
BaseArrayelements as a slice ofBaseelements - as_
base_ ⚠slice_ mut - Reinterpret a mutable slice of
BaseArrayelements as a slice ofBaseelements - assume⚠
- Allow the compiler to assume that the given predicate
pis alwaystrue. - assume_
init_ ⚠ref - Gets a shared reference to the contained value.
- branch_
hint - Try to force Rust to emit a branch. Example:
- flatten_
to_ ⚠base - Convert a vector of
BaseArrayelements to a vector ofBaseelements without any reallocations. - gcd_
inner - Inner loop of the deferred GCD algorithm.
- gcd_
inversion_ prime_ field_ 32 - Inverts elements inside the prime field
F_PwithP < 2^FIELD_BITS. - indices_
arr - Returns
[0, ..., N - 1]. - iter_
array_ chunks_ padded - Returns an iterator over
Nelements of the iterator at a time. - log2_
ceil_ u64 - log2_
ceil_ usize - Computes
ceil(log_2(n)). - log2_
strict_ usize - Computes
log_2(n) - pretty_
name - Return a String containing the name of T but with all the crate and module prefixes removed.
- reconstitute_
from_ ⚠base - Convert a vector of
Baseelements to a vector ofBaseArrayelements ideally without any reallocations. - relatively_
prime_ u64 - reverse_
bits - reverse_
bits_ len - reverse_
slice_ index_ bits - Permutes
arrsuch that each index is mapped to its reverse in binary.