Skip to content

Instantly share code, notes, and snippets.

View WarrenWeckesser's full-sized avatar

Warren Weckesser WarrenWeckesser

View GitHub Profile
@WarrenWeckesser
WarrenWeckesser / data.py
Created January 22, 2012 17:00
Modifed version of scipy/sparse/data.py adds numpy unary ufuncs to the _data_matrix class.
"""Base class for sparse matrice with a .data attribute
subclasses must provide a _with_data() method that
creates a new matrix with the same sparsity pattern
as self but with a different data array
"""
__all__ = []