Github user viirya commented on the issue:

    https://github.com/apache/spark/pull/17459
  
    I've done some prototype locally to generalize this change to 
`SparseMatrix`. During that, I have a thought that do we have the limit that 
all Matrix in `BlockMatrix` need to be the same kind of Matrix (i.e., 
`DenseMatrix` or `SparseMatrix`)?
    
    Actually we can easily have only one `toBlockMatrix` method which creates a 
`BlockMatrix` including both `DenseMatrix` or `SparseMatrix`, depending if the 
blocks are sparse or not.
    
    From the external view of this API, we don't have an explicit difference 
between `SparseMatrix`-backed and `DenseMatrix`-backed `BlockMatrix`s. We don't 
have subclasses for it, nor any property can be used to know about it. Doesn't 
it mean we don't really care about it?
    



---
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