]> gitweb.michael.orlitzky.com - octave.git/blobdiff - optimization/conjugate_gradient_method.m
Add ellipses on a multi-line statement.
[octave.git] / optimization / conjugate_gradient_method.m
index a6401e5ec21ff963883368576deb59ff0e1b36d0..2fab666b7794ccb1d583dcc56057e11362bb9307 100644 (file)
@@ -35,15 +35,18 @@ function [x, k] = conjugate_gradient_method(A, b, x0, tolerance, max_iterations)
   %
   % All vectors are assumed to be *column* vectors.
   %
+  % The rather verbose name of this function was chosen to avoid
+  % conflicts with other implementations.
+  %
   n = length(x0);
   M = eye(n);
 
   % The standard CGM is equivalent to the preconditioned CGM is you
   % use the identity matrix as your preconditioner.
-  [x, k] = preconditioned_conjugate_gradient_method(A,
-                                                   M,
-                                                   b,
-                                                   x0,
-                                                   tolerance,
+  [x, k] = preconditioned_conjugate_gradient_method(A, ...
+                                                   M, ...
+                                                   b, ...
+                                                   x0, ...
+                                                   tolerance, ...
                                                    max_iterations);
 end