You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean R. Owen (Jira)" <ji...@apache.org> on 2020/03/02 14:58:00 UTC
[jira] [Resolved] (SPARK-30813) Matrices.sprand mistakes in
comments
[ https://issues.apache.org/jira/browse/SPARK-30813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean R. Owen resolved SPARK-30813.
----------------------------------
Fix Version/s: 3.0.0
2.4.6
Resolution: Fixed
Issue resolved by pull request 27564
[https://github.com/apache/spark/pull/27564]
> Matrices.sprand mistakes in comments
> -------------------------------------
>
> Key: SPARK-30813
> URL: https://issues.apache.org/jira/browse/SPARK-30813
> Project: Spark
> Issue Type: Bug
> Components: ML
> Affects Versions: 3.0.0
> Reporter: Xiaochang Wu
> Assignee: Xiaochang Wu
> Priority: Trivial
> Fix For: 2.4.6, 3.0.0
>
>
> /**
> * 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)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org