pub fn rand_csr<R, N, D, I>(
rng: &mut R,
dist: D,
shape: (usize, usize),
density: f64
) -> CsMatI<N, I> where
R: Rng + ?Sized,
D: Distribution<N>,
N: Copy,
I: SpIndex,
Expand description
Generate a random sparse matrix matching the given density and sampling the values of its non-zero elements from the provided distribution.