nums-project / nums

A library that translates Python and NumPy to optimized distributed systems code.
Apache License 2.0
131 stars 26 forks source link

add from_sparse method #564

Closed trsigg closed 2 years ago

trsigg commented 2 years ago

Method for creating a SparseBlockArray from a scipy.sparse object.

dlzou commented 2 years ago

@trsigg Can you remove the asscalar fallback so tests pass? Should be the same as #563. Also, can you add a test case for the new method?