sp1_core_machine::utils

Function zeroed_f_vec

Source
pub fn zeroed_f_vec<F: Field>(len: usize) -> Vec<F>
Expand description

Returns a vector of zeros of the given length. This is faster than vec![F::zero(); len] which requires copying.

This function is safe to use only for fields that can be transmuted from 0u32.