Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

A sparse matrix package based on Eigen.

Project description

SpPy is a sparse matrix library based on the C++ library Eigen with a similar interface to NumPy. Here is a code snippet:

::

>>> import numpy
>>> from sppy import csarray
>>> #Create a new column major dynamic array of float type
>>> B = csarray((5, 5), storagetype="col")
>>> B[3, 3] = -0.2
>>> B[0, 4] = -1.23
>>> B[numpy.array([0, 1]), numpy.array([0,1])] = 27
>>> print(B)
csarray dtype:float64 shape:(5, 5) non-zeros:4 storage:col
(0, 0) 27.0
(1, 1) 27.0
(3, 3) -0.2
(0, 4) -1.23
>>> print(B.sum())
52.57

More Information
----------------

* See the user guide at http://pythonhosted.org/sppy/
* The source code is available at https://github.com/charanpald/sppy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sppy, version 0.6.7
Filename, size File type Python version Upload date Hashes
Filename, size sppy-0.6.7.tar.gz (1.1 MB) File type Source Python version None Upload date Hashes View
Filename, size sppy-0.6.7.zip (1.2 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page