Expand description
Traits for packed field elements which support SIMD implementations.
Interfaces are derived from plonky2.
Structs§
- Packed
Slice - A slice of packed field elements as a collection of scalars.
- Packed
Slice Mut - A mutable slice of packed field elements as a collection of scalars.
Traits§
- Packed
Binary Field - A helper trait to make the generic bounds shorter
- Packed
Field - A packed field represents a vector of underlying field elements.
Functions§
- get_
packed_ slice - get_
packed_ slice_ checked - get_
packed_ ⚠slice_ unchecked - Returns the scalar at the given index without bounds checking.
- iter_
packed_ slice_ with_ offset - Iterate over scalar values in a packed field slice.
- len_
packed_ slice - mul_
by_ subfield_ scalar - Multiply packed field element by a subfield scalar.
- pack_
slice - Pack a slice of scalars into a vector of packed field elements.
- packed_
from_ fn_ with_ offset - Construct a packed field element from a function that returns scalar values by index with the
given offset in packed elements. E.g. if
offsetis 2, andWIDTHis 4,f(9)will be used to set the scalar at index 1 in the packed element. - set_
packed_ slice - set_
packed_ slice_ checked - set_
packed_ ⚠slice_ unchecked - Sets the scalar at the given index without bounds checking.