Matlab program to test LU_pivot.m

% Script to test LU_pivot.m
% K. Ming Leung, 02/05/03

% A=[2 6 10
% 1 3 3
% 3 14 28];
A=[ 1 2 2
4 4 2
4 6 4]; % Example 6.2 Heath, p.73
[L,U,P]=LU_pivot(A);

display(L);
display(U);
% The following matices must be identical.
% They are the same as A but with rows permuted.
T1=L*U,
T2=P*A,