Mercurial > hg > octave-nkf
diff libinterp/corefcn/lu.cc @ 18494:807e21ebddd5 stable
maint: Style fixes for tests in libinterp/corefcn/lu.cc
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Mon, 03 Feb 2014 11:44:30 -0500 |
parents | 2a45b6b87bee |
children | 93c019f00e59 |
line wrap: on
line diff
--- a/libinterp/corefcn/lu.cc +++ b/libinterp/corefcn/lu.cc @@ -580,11 +580,11 @@ %! Bv = [1 1 1 1 1 1 -1 1 1 1 1 -1 1 -1 1]; %! B = sparse (Bi,Bj,Bv); %! [L,U] = lu (B); -%! assert (nnz (B - L*U) == 0); +%! assert (L*U, B); %! [L,U,P] = lu(B); -%! assert (nnz (B - P'*L*U) == 0); +%! assert (P'*L*U, B); %! [L,U,P,Q] = lu (B); -%! assert (nnz (B - P'*L*U*Q') == 0); +%! assert (P'*L*U*Q', B); */