Mercurial > matrix-functions
view toolbox/lauchli.m @ 0:8f23314345f4 draft
Create local repository for matrix toolboxes. Step #0 done.
author | Antonio Pino Robles <data.script93@gmail.com> |
---|---|
date | Wed, 06 May 2015 14:56:53 +0200 |
parents | |
children |
line wrap: on
line source
function A = lauchli(n, mu) %LAUCHLI Lauchli matrix - rectangular. % LAUCHLI(N, MU) is the (N+1)-by-N matrix [ONES(1,N); MU*EYE(N))]. % It is a well-known example in least squares and other problems % that indicates the dangers of forming A'*A. % MU defaults to SQRT(EPS). % Reference: % P. Lauchli, Jordan-Elimination und Ausgleichung nach % kleinsten Quadraten, Numer. Math, 3 (1961), pp. 226-240. if nargin < 2, mu = sqrt(eps); end A = [ones(1,n); mu*eye(n)];