[SciPy-user] Sparse sub-matrix indexing
Nathan Bell
wnbell at gmail.com
Fri Oct 10 13:38:50 EDT 2008
On Fri, Oct 10, 2008 at 11:34 AM, James Philbin <philbinj at gmail.com> wrote:
> Hi,
>
> I've come across this inconsistency with indexing sparse matrices:
> In [3]: A = np.arange(100).reshape(10,10)
> In [4]: B = spsp.csr_matrix(A)
> In [5]: A[np.array([2]),:][:,np.array([2])]
> Out[5]: array([[22]])
> In [6]: B[np.array([2]),:][:,np.array([2])]
Thanks for the report. It should be fixed in r4792.
btw, you should get a trac account so future reports don't get lost:
http://projects.scipy.org/scipy/scipy
--
Nathan Bell wnbell at gmail.com
http://graphics.cs.uiuc.edu/~wnbell/
More information about the SciPy-User
mailing list