load_npz
Load a sparse matrix in numpy's .npz format from disk.
Note: This is not binary compatible with scipy's save_npz()
output. This binary format is not currently stable.
Will only load files saved by this package.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
file-like object, string, or pathlib.Path
|
The file to read. File-like objects must support the
|
required |
Returns:
| Type | Description |
|---|---|
SparseArray
|
The sparse matrix at path |
Examples:
See sparse.save_npz for usage examples.
Source code in sparse/numba_backend/_io.py
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |