Github user dbtsai commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15628#discussion_r107972466
  
    --- Diff: 
mllib-local/src/main/scala/org/apache/spark/ml/linalg/Matrices.scala ---
    @@ -1079,4 +1267,15 @@ object Matrices {
           SparseMatrix.fromCOO(numRows, numCols, entries)
         }
       }
    +
    +  private[ml] def getSparseSize(numActives: Long, numPtrs: Long): Long = {
    +    // 8 * values.length + 4 * rowIndices.length + 4 * colPtrs.length + 12 
+ 12 + 12 + 1
    +    12L * numActives + 4L * numPtrs + 37L
    --- End diff --
    
    Nice that we can get `37L` using java apis to ensure the portability. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to