LiberTEM
0.11
User manual
Installation
GUI usage
Applications
Loading data
Sample Datasets
Python API
User-defined functions (UDFs)
Dask integration
Changelog
Citing
Acknowledgments
Reference
Python API reference
LiberTEM Context API
UDF API reference
Data Set API
I/O Backends
Application-specific APIs
Mask creation and manipulation
Sparse array utils
Internal API
Dask API
Corrections
Visualization
Indices and tables
Tips and tricks
Package overview
Concepts
Performance
Why Python?
For developers
Setting up a development environment
Contributing
Debugging
Architecture
How does I/O work in LiberTEM?
LiberTEM executors
Authorship policy
LiberTEM
Python API reference
Sparse array utils
View page source
Sparse array utils
libertem.common.sparse.
assert_sparse
(
a
)
→
SparseArray
[source]
libertem.common.sparse.
is_sparse
(
a
)
[source]
libertem.common.sparse.
sparse_to_coo
(
a
,
shape
:
Optional
[
Union
[
Shape
,
Tuple
[
int
]
]
]
=
None
)
[source]
libertem.common.sparse.
to_dense
(
a
)
[source]
libertem.common.sparse.
to_sparse
(
a
,
shape
:
Optional
[
Union
[
Shape
,
Tuple
[
int
]
]
]
=
None
)
[source]