[SciPy-dev] is PySparse required for scipy.maxentropy

josef.pktd@gmai... josef.pktd@gmai...
Fri Jan 23 12:50:06 CST 2009

historic artifact or not?

I saw a reference to PySparse in scipy.maxentropy.maxentutils.sparsefeatures.
Is this still required or covered by scipy.sparse?


def sparsefeatures(f, x, format='csc_matrix'):
    """ Returns an Mx1 sparse matrix of non-zero evaluations of the
    scalar functions f_1,...,f_m in the list f at the point x.

    If format='ll_mat', the PySparse module (or a symlink to it) must be
    available in the Python site-packages/ directory.  A trimmed-down
    version, patched for NumPy compatibility, is available in the SciPy
    sandbox/pysparse directory.
    m = len(f)
    if format == 'll_mat':
        import spmatrix
        sparsef = spmatrix.ll_mat(m, 1)

More information about the Scipy-dev mailing list