]> gitweb.michael.orlitzky.com - octave.git/blob - tests/perturb_tests.m
Add the perturb() function and its tests.
[octave.git] / tests / perturb_tests.m
1 A = rand(10);
2 A_hat = perturb(A, 1e-12);
3 dA = A_hat - A;
4
5 unit_test_equals("dA has the correct infinity norm", ...
6 1e-12, ...
7 norm(dA, 'inf'));