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

Matrices.sprand mistakes in comments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 3.0.0
    • 2.4.6, 3.0.0
    • ML
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: