]> gitweb.michael.orlitzky.com - octave.git/blobdiff - tests/conjugate_gradient_method_tests.m
Pass max_iterations to the CGM test.
[octave.git] / 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", ...