Module packed

Source
Expand description

Traits for packed field elements which support SIMD implementations.

Interfaces are derived from plonky2.

Structs§

PackedSlice
A slice of packed field elements as a collection of scalars.
PackedSliceMut
A mutable slice of packed field elements as a collection of scalars.

Traits§

PackedBinaryField
A helper trait to make the generic bunds shorter
PackedField
A packed field represents a vector of underlying field elements.

Functions§

copy_packed_from_scalars_slice
Copy scalar elements to a vector of packed field elements.
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 offset is 2, and WIDTH is 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.