<br><br><div class="gmail_quote">On Sat, Jan 29, 2011 at 10:11 PM, Algis Kabaila <span dir="ltr"><<a href="mailto:akabaila@pcug.org.au">akabaila@pcug.org.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Sunday 30 January 2011 09:10:30 Sturla Molden wrote:<br>
> Den 29.01.2011 12:40, skrev Algis Kabaila:<br>
> > So my question is: how can one reliably detect singularity<br>
> > (or near singularity) and raise an exception?<br>
><br>
> Use an SVD, examine the singular values.<br>
</div>I gather that SVD is the Singular Value Decomposition, but I<br>
have no idea how to perform such decomposition. Would you care<br>
to refer me to some simple source material?  I have been advised<br>
to watch the condition numbers. No doubt, SVD and condition<br>
numbers are related.  The references about condition numbers are<br>
very interesting and I intend to follow them in the first<br>
instance.<br>
<div class="im"><br></div></blockquote><div><br>Use numpy.linalg.svd. The condition number is the ratio of the largest singular value to the smallest.<br><br><snip><br><br>Chuck <br><br></div></div>