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

mllib DenseMatrix toArray could use the internal values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Done
    • 1.6.1
    • None
    • MLlib
    • None

    Description

      When toArray is called from an mllib Densematrix, it calls the function from the superclass Matrix, where it creates a new array (and iterates through all the values).

      This is not necessary as values are stored in DenseMatrix, in exactly the format that this function would require. Why not just call that?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jamborta Tamas Jambor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: