[SciPy-user] more help with sparse matrix: creating
Mon Oct 8 12:33:57 CDT 2007
On 10/8/07, Dominique Orban <email@example.com> wrote:
> I hope this helps.
It certainly does help - thanks a lot for your time...
In this case I know the nnz exactly in advance, which is why I was keen to
Unfortunately it seems I still can't do the MATLAB style indexing I wanted,
M[2, [1,2,3]] = 1
but since I will be updating row by row anyway I can get around this by
creating a temporary row vector to insert with slicing.
Also, if I understand correctly the conversion to csr necessary for
matrix-vector multiplication cannot be done in place - this is a real shame
as it doubles the memory requirements for this over the MATLAB version (I
really want to make this array as big as possible)
Still I'll carry on for now - may have to talk my supervisor into getting me
some more ram!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-user