[SciPy-user] Sparse Matrix
Natali Melgarejo Diaz
nmelgarejodiaz at gmail.com
Thu Mar 6 04:23:47 EST 2008
Good morning everyone,
I have a problem with linsolve.spsolve, I am using it as a translation of
teh operator "\" backslash in Matlab for division. CAm you tell if it's the
same as \ in Matlab or if thre is another language.
Normally, the parameters are going to be:
A = sparse.lil_matrix(N,N)
b = (K0**2 -KZ**2)*(-1j)
then we add some values to A...
Efd = linsolve.spsolve(A,b) + Ei
And the values aren't the same as in Matkab., linsolve.spsolve(A,b) gets
only zeros and when I plot i have a "singular martix" error.
Thanks in advance for your help!
--
********Natali********
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20080306/ede2c6f5/attachment.html>
More information about the SciPy-User
mailing list