From: Michael Orlitzky Date: Wed, 20 Mar 2013 01:45:11 +0000 (-0400) Subject: Pass max_iterations to the CGM test. X-Git-Url: http://gitweb.michael.orlitzky.com/?p=octave.git;a=commitdiff_plain;h=f8e7cf86158857d320d11a8d3ef14c3cfac625d6;ds=sidebyside Pass max_iterations to the CGM test. --- diff --git a/tests/conjugate_gradient_method_tests.m b/tests/conjugate_gradient_method_tests.m index 56987a5..59e137a 100644 --- a/tests/conjugate_gradient_method_tests.m +++ b/tests/conjugate_gradient_method_tests.m @@ -8,7 +8,7 @@ x0 = [1;1;1]; ## Solved over the rationals. expected = [2/73; 11/73; 26/73]; -actual = conjugate_gradient_method(A, b, x0, 1e-6); +actual = conjugate_gradient_method(A, b, x0, 1e-6, 1000); diff = norm(actual - expected); unit_test_equals("CGM works on an example", ...