I am trying to find the least squares solution of a system (Ax = b). I tried to make a demo here: http://www.vtk.org/Wiki/Least_Squares but it crashes with some memory errors. Can anyone see where I have gone wrong? Thanks, David