# HG changeset patch # User Ed Meyer # Date 1347946605 25200 # Node ID 6d4cd994ea718a025b043de2e4bc38529c0b8fed # Parent 7a009eea571aa47113a05199251b24669da450b6 corrections to the doc for mgorth diff -r 7a009eea571a -r 6d4cd994ea71 libinterp/corefcn/mgorth.cc --- a/libinterp/corefcn/mgorth.cc Mon Sep 17 08:50:46 2012 -0400 +++ b/libinterp/corefcn/mgorth.cc Mon Sep 17 22:36:45 2012 -0700 @@ -51,15 +51,16 @@ DEFUN (mgorth, args, nargout, "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {[@var{y}, @var{h}] =} mgorth (@var{x}, @var{v})\n\ -Orthogonalize a given column vector @var{x} with respect to a given\n\ -orthonormal basis @var{v} using a modified Gram-Schmidt orthogonalization. \n\ +Orthogonalize a given column vector @var{x} with respect to a set of\n\ +orthonormal vectors comprising the columns of @var{v} +using the modified Gram-Schmidt method. \n\ On exit, @var{y} is a unit vector such that:\n\ \n\ @example\n\ @group\n\ norm (@var{y}) = 1\n\ @var{v}' * @var{y} = 0\n\ - @var{x} = @var{h}*[@var{v}, @var{y}]\n\ + @var{x} = [@var{v}, @var{y}]*@var{h}'\n\ @end group\n\ @end example\n\ \n\ @@ -81,7 +82,7 @@ if (arg_v.ndims () != 2 || arg_x.ndims () != 2 || arg_x.columns () != 1 || arg_v.rows () != arg_x.rows ()) { - error ("mgorth: V should me a matrix, and X a column vector with" + error ("mgorth: V should be a matrix, and X a column vector with" " the same number of rows as V."); return retval; }