Expand description

Random sparse matrix generation

Modules

Re-export rand for version compatibility

Re-export rand_distr for version compatibility

Functions

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

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