Hi Everyone, I am trying sparse matrix these days. I am wondering is there any way I can access the sparse matrix with flattened index? For example: a=numpy.matrix([[0,1,2],[3,4,5]) matrix([[0, 1, 2], [3, 4, 5]])
>>> >>>print a.flat[3] >>> 3 >>> >>> a.flat[3]=10 >>> >>> print a >>> [[ 0 1 2] [10 4 5]] How could I do the similar indexing for sparse matrix? Thanks ahead, LittleBigBrain _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion