_______________________________________________
SciPy-User mailing list
SciPy...@scipy.org
http://mail.scipy.org/mailman/listinfo/scipy-user
Or the people who know did not have time to immediately answer your
question, and forgot about the mail afterwards.
If you think it's a bug, please file a ticket in the Trac. Thanks!
--
Pauli Virtanen
in this case, using:
a[0:3,:] = 1
will do what you want.
I don't know if it's really a bug.
>
> Questions:
> 1) Seems like a[some_ind,:]=something works very, very slow
> for lil. I have implemented a workaround, but can I use
> a[some_ind,:] for another format than lil? (seems like all
> other ones doesn't support it).
>From what I understand, lil format is useful for building matrices terms
by terms. As for advanced indexing operations, I guess coo format is
more appropriate...
--
Denis
Please file a bug report if you haven't done so already. It's
possible that this issue is already fixed [1] or will be fixed in 0.8.
[1] http://projects.scipy.org/scipy/ticket/917
> 2) What is current situation with matmat and matvec functions? They say
> "deprecated" but no alternative is mentioned.
Those are implemented with A*x now (just like a dense matrix). Sorry
for the confusion, the deprecation warning should be more explicit.
Feel free to file a bug report :)
> 3) What is current situation with scipy.sparse.linalg.spsolve? It says
> /usr/lib/python2.6/dist-packages/scipy/sparse/linalg/dsolve/linsolve.py:78:
> DeprecationWarning: scipy.sparse.linalg.dsolve.umfpack will be removed,
> install scikits.umfpack instead
> ' install scikits.umfpack instead', DeprecationWarning )
> But I don't want my code to be dependent on a scikits module. Are there
> another default/autoselect solver for sparse SLEs?
> If no, which one would you recommend me to use as default for sparse SLEs -
> bicg, gmres, something else?
Currently, if you have UMFPACK installed when SciPy is compiled (often
this happens automatically) then it will be the default handler for
spsolve(). Since UMFPACK is a GPL code a decision was made to move
the wrappers an optional package (scikits.umfpack). Eventually, these
wrappers will be removed from SciPy and the default will revert to
SuperLU, which is BSD licensed sparse factorization method that ships
with SciPy.
--
Nathan Bell wnb...@gmail.com
http://www.wnbell.com/