Module utils

Source
Expand description

Utility functions

Functions§

batch_multiplicative_inverse_allowing_zero
Calculates and returns the multiplicative inverses of each field element, with zero values remaining unchanged.
disable_debug_builder
Disables the debug builder so there are not debug assert panics. Commonly used in negative tests to prevent panics.
metrics_span
A span that will run the given closure f, and emit a metric with the given name using gauge when the feature "bench-metrics" is enabled.