Skip to main content

write_sparse

Function write_sparse 

Source
pub fn write_sparse(path: &str, coo: &CooMatrix) -> Result<()>
Expand description

Write a COO matrix under the four keys read_sparse_values documents.

shape goes in as a two-element uint32 array rather than a tuple: an npz holds arrays, and this is the spelling numpy.load(...)["shape"] reads back as the pair the dict form hands out.