]> gitweb.michael.orlitzky.com - octave.git/commitdiff
Pass max_iterations to the CGM test.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 20 Mar 2013 01:45:11 +0000 (21:45 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 20 Mar 2013 01:45:11 +0000 (21:45 -0400)
tests/conjugate_gradient_method_tests.m

index 56987a50ac0615b1bcaf61458872cb72d67c0355..59e137aa0c37964dfa543d55e5a08633455a5ce4 100644 (file)
@@ -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", ...