[Numpy-discussion] How to solve homogeneous linear equations with NumPy?

Peter Cai newptcai at gmail.com
Thu Dec 3 00:40:30 EST 2009


How to solve homogeneous linear equations with NumPy?



If I have homogeneous linear equations like this

array([[-0.75,  0.25,  0.25,  0.25],
       [ 1.  , -1.  ,  0.  ,  0.  ],
       [ 1.  ,  0.  , -1.  ,  0.  ],
       [ 1.  ,  0.  ,  0.  , -1.  ]])

And I want to get a non-zero solution for it. How can it be done with NumPy?

linalg.solve only works on A * x = b where b does not contains only 0.



--
look to the things around you,the immediate world around you, if you
are alive,it will mean something to you ——Paul Strand



More information about the NumPy-Discussion mailing list