[SciPy-User] Alternative for scipy.sparse.sparsetools for use from outside of scipy

Pauli Virtanen pav at iki.fi
Tue Oct 6 14:57:20 EDT 2015


Lev Konstantinovskiy <lev.konst <at> gmail.com> writes:
> What is the danger of using sparsetools from outside of scipy?

It is a private API. Changes can be made to it without needing
to go through deprecation cycles.

The boundaries of what is private and what was not historically
very clear in Scipy (and in Python in general). Clearly, it does
not make sense to keep all helper routines as public.

https://docs.scipy.org/doc/scipy-dev/reference/api.html#api-definition

The case of scipy.sparse is that it will likely need to go through
some restructuring in the future, partly because of the need for
more array-like sparse matrices, and also partly to improve
performance in places where the half-Python half-C++ approach
has too large costs.

-- 
Pauli Virtanen





More information about the SciPy-User mailing list