Mercurial > octave
changeset 30402:1ef9fca2db06
maint: strip trailing spaces from codebase.
* data.cc, qr.cc: strip trailing spaces.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 29 Nov 2021 16:46:01 -0800 |
parents | e52c8171ff34 |
children | 64d8e7c98a2f |
files | libinterp/corefcn/data.cc libinterp/corefcn/qr.cc |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/data.cc Mon Nov 29 16:44:12 2021 -0800 +++ b/libinterp/corefcn/data.cc Mon Nov 29 16:46:01 2021 -0800 @@ -1295,7 +1295,7 @@ %! single ([1; 2; 3])) %!assert (diag (int8 ([1; 2; 3])), int8 ([1, 0, 0; 0, 2, 0; 0, 0, 3])) -%!assert (diag (int8 ([1; 2; 3]), 1), +%!assert (diag (int8 ([1; 2; 3]), 1), %! int8 ([0, 1, 0, 0; 0, 0, 2, 0; 0, 0, 0, 3; 0, 0, 0, 0])) %!assert (diag (int8 ([1; 2; 3]), 2), %! int8 ([0 0 1 0 0; 0 0 0 2 0; 0 0 0 0 3; 0 0 0 0 0; 0 0 0 0 0]))
--- a/libinterp/corefcn/qr.cc Mon Nov 29 16:44:12 2021 -0800 +++ b/libinterp/corefcn/qr.cc Mon Nov 29 16:46:01 2021 -0800 @@ -1617,7 +1617,7 @@ %! [Q,R] = qrinsert (Q, R, 3, x, "row"); %! assert (norm (vec (Q'*Q - eye (6,"single")), Inf) < 1e1*eps ("single")); %! assert (norm (vec (triu (R) - R), Inf) == 0); -%! assert (norm (vec (Q*R - single ([A(1:2,:);x;A(3:5,:)])), Inf) +%! assert (norm (vec (Q*R - single ([A(1:2,:);x;A(3:5,:)])), Inf) %! < norm (single (A))*1e1*eps ("single")); %!test %! x = single ([0.20351 + 0.05401i 0.13141 + 0.43708i 0.29808 + 0.08789i ]);