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

mllib DenseMatrix toArray could use the internal values

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 1.6.1
    • Fix Version/s: None
    • Component/s: MLlib
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: