Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-30813

Matrices.sprand mistakes in comments

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 2.4.6, 3.0.0
    • Component/s: ML
    • Labels:
      None

      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

            Activity

              People

              • Assignee:
                xiaochang-wu Xiaochang Wu
                Reporter:
                xiaochang-wu Xiaochang Wu
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: