Description
/**
- Generate a `SparseMatrix` consisting of `i.i.d.` gaussian random numbers.
>> should be "uniform random" here
- @param numRows number of rows of the matrix
- @param numCols number of columns of the matrix
- @param density the desired density for the matrix
- @param rng a random number generator
- @return `Matrix` with size `numRows` x `numCols` and values in U(0, 1)
*/
@Since("2.0.0")
def sprand(numRows: Int, numCols: Int, density: Double, rng: Random): Matrix =
SparseMatrix.sprand(numRows, numCols, density, rng)
Attachments
Issue Links
- links to