Mercurial > octave
diff scripts/linear-algebra/logm.m @ 19670:e5facc6eec13
Silence warning messages in %!test code.
* ind2rgb.m: Turn off "Octave:ind2rgb:invalid-idx-img" locally.
* condest.m: Turn off "Octave:nearly-singular-matrix" locally.
* logm.m: Turn off "Octave:logm:non-principal" locally.
* polyfit.m: Turn off "Octave:nearly-singular-matrix" locally.
* __printf_assert__.m: Initialize global _assert_printf to empty string to
avoid num-to-str warning later.
* __prog_output_assert__.m: Initialize global _assert_printf to empty string to
avoid num-to-str warning later.
.
* parser.tst: Turn off "Octave:num-to-str" locally.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 07 Feb 2015 20:55:39 -0800 |
parents | d63878346099 |
children | 4197fc428c7d |
line wrap: on
line diff
--- a/scripts/linear-algebra/logm.m Sat Feb 07 11:32:47 2015 -0500 +++ b/scripts/linear-algebra/logm.m Sat Feb 07 20:55:39 2015 -0800 @@ -161,7 +161,9 @@ %!assert (norm (logm ([1 -1;0 1]) - [0 -1; 0 0]) < 1e-5) -%!assert (norm (expm (logm ([-1 2 ; 4 -1])) - [-1 2 ; 4 -1]) < 1e-5) +%!test +%! warning ("off", "Octave:logm:non-principal", "local"); +%! assert (norm (expm (logm ([-1 2 ; 4 -1])) - [-1 2 ; 4 -1]) < 1e-5); %!assert (logm ([1 -1 -1;0 1 -1; 0 0 1]), [0 -1 -1.5; 0 0 -1; 0 0 0], 1e-5) %!assert (logm (10), log (10)) %!assert (full (logm (eye (3))), logm (full (eye (3))))