Skip to main content
Module utils
openvm_
stark_
backend
2.0.0
Module utils
Module Items
Functions
In crate openvm_
stark_
backend
openvm_stark_backend
Module
utils
Copy item path
Source
Functions
§
batch_
multiplicative_
inverse_
allowing_
zero
Calculates and returns the multiplicative inverses of each field element, with zero values remaining unchanged.
batch_
multiplicative_
inverse_
serial
Batch multiplicative inverses with Montgomery’s trick This is Montgomery’s trick. At a high level, we invert the product of the given field elements, then derive the individual inverses from that via multiplication.
disable_
debug_
builder
Disables the debug builder so there are not debug assert panics. Commonly used in negative tests to prevent panics.
parallelize_
chunks
This utility function will parallelize an operation that is to be performed over a mutable slice.