par_indexed_map

Function par_indexed_map 

Source
pub fn par_indexed_map<F>(state: &mut [Complex64], f: F)
where F: Fn(usize, Complex64) -> Complex64 + Sync,
Expand description

Parallel map over state vector elements with index

Apply a function to each element of the state vector in parallel. The function is passed the index and current value of each element.