Crate sprs_rand[][src]

Random sparse matrix generation

Modules

rand

Re-export rand for version compatibility

rand_distr

Re-export rand_distr for version compatibility

Functions

rand_csr

Generate a random sparse matrix matching the given density and sampling the values of its non-zero elements from the provided distribution.

rand_csr_std

Convenient wrapper for the common case of sampling a matrix with standard normal distribution of the nnz values, using a lightweight rng.