Expand description
Various simple utilities.
Modules§
- array_
serialization - linear_
map - transpose
- Matrix transpose operations.
- zip_eq
Structs§
- Disjoint
MutPtr - A raw mutable pointer wrapper that implements
SendandSync.
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 - assert_
clone - Statically asserts that
TimplementsClone. - assert_
send - Statically asserts that
TimplementsSend. - assert_
sync - Statically asserts that
TimplementsSync. - assume⚠
- Allow the compiler to assume that the given predicate
pis alwaystrue. - branch_
hint - Try to force Rust to emit a branch. Example:
- checked_
log_ size_ sum - Adds two log-sizes and computes the resulting power of two.
- checked_
pow2 - Returns
2^log_degreeif it can be represented byusize. - 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_
floor_ usize - Computes
floor(log_2(n)). - log2_
strict_ usize - Computes
log_2(n) - log3_
strict_ usize - Computes the strict base-3 logarithm of
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.