[Numpy-discussion] Matrix Class

Alan G Isaac alan.isaac at gmail.com
Wed Feb 11 14:57:26 EST 2015


On 2/11/2015 2:25 PM, cjw wrote:
> I think of the matrix as a numeric object.  What would the case be for having a Boolean matrix?


It's one of my primary uses:
https://en.wikipedia.org/wiki/Adjacency_matrix

Numpy alread provides SVD:
http://docs.scipy.org/doc/numpy/reference/generated/numpy.linalg.svd.html
A lot of core linear algebra is in `numpy.linalg`, and SciPy has much more.

Remember for matrix `M` you can always apply any numpy function to `M.A`.

I think gains could be in lazy evaluation structures (e.g.,
a KroneckerProduct object that never actually produces the product
unless forced to.)

Cheers,
Alan




More information about the NumPy-Discussion mailing list