[Numpy-discussion] numpy.linalg.linalg.LinAlgError: Singular matrix
kortmann at ideaworks.com
kortmann at ideaworks.com
Wed Aug 16 16:54:35 EDT 2006
all of the variables n, st, st2, st3, st4, st5, st6, sx, sxt, sxt2, and
sxt3 are all floats.
A = array([[N, st, st2, st3],[st, st2, st3, st4], [st2, st3, st4, st5],
[st3, st4, st5, st6]])
B = array ([sx, sxt, sxt2, sxt3])
lina = linalg.solve(A, B)
is there something wrong with this code?
it is returning
File "C:\PYTHON23\Lib\site-packages\numpy\linalg\linalg.py", line 138,
in solve
raise LinAlgError, 'Singular matrix'
numpy.linalg.linalg.LinAlgError: Singular matrix
Does anyone know what I am doing wrong?
-Kenny
More information about the NumPy-Discussion
mailing list