Example of not inverting a matrix: optimization A high-level explanation of how scipy.optimize.fmin_ncg (Newton-Conjugate Gradient) works http://www.johndcook.com/blog/2012/02/08/newton-conjugate-gradient/