SpPy

A sparse matrix package based on Eigen
Download

SpPy Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL
  • Price:
  • FREE
  • Publisher Name:
  • Charanpal Dhanjal
  • Publisher web site:
  • http://www.somethingaboutme.net

SpPy Tags


SpPy Description

SpPy is a fast sparse array and matrix library written in Python and based on the C++ matrix library Eigen.SpPy supports a number of linear algebra operations and (compressed) sparse matrices. Moreover, SpPy an interface very similar to numpy, in order to require minimal changes to work with sparse matrices, on existing code.Getting StartedFirst of all, read the installation guide. A good way to learn about the features of the sppy library is to look at the source code, especially csarray, which is the sparse matrix class. Examples:>>> import numpy>>> from sppy import csarray>>> #Create a new column major dynamic array of float type>>> B = csarray((5, 5))>>> B = -0.2>>> B = -1.23>>> print(B.shape)(5, 5)>>> print(B.size)25>>> print(B.getnnz())2>>> print(B)csarray dtype:float64 shape:(5, 5) non-zeros:2(3, 3) -0.2(0, 4) -1.23>>> B), numpy.array()] = 27>>> print(B)csarray dtype:float64 shape:(5, 5) non-zeros:4(0, 0) 27.0(1, 1) 27.0(3, 3) -0.2(0, 4) -1.23>>> print(B.sum())52.57Package DocumentationProduct's homepage


SpPy Related Software