# HG changeset patch # User Rik # Date 1459116924 25200 # Node ID a81c9a0a05e34f551644c8c0ee6b02352790d38e # Parent 30bf9a4d467ac38df300b5092ab6078a3dea86ac doc: Correct typos in lu documentation. * lu.cc: Change 'spare' to 'sparse'. Cuddle parentheses for indexing. diff -r 30bf9a4d467a -r a81c9a0a05e3 libinterp/corefcn/lu.cc --- a/libinterp/corefcn/lu.cc Sun Mar 27 10:22:43 2016 -0700 +++ b/libinterp/corefcn/lu.cc Sun Mar 27 15:15:24 2016 -0700 @@ -69,8 +69,8 @@ @cindex LU decomposition\n\ Compute the LU@tie{}decomposition of @var{A}.\n\ \n\ -If @var{A} is full subroutines from @sc{lapack} are used and if @var{A} is\n\ -sparse then @sc{umfpack} is used.\n\ +If @var{A} is full then subroutines from @sc{lapack} are used, and if\n\ +@var{A} is sparse then @sc{umfpack} is used.\n\ \n\ The result is returned in a permuted form, according to the optional return\n\ value @var{P}. For example, given the matrix @code{a = [1, 2; 3, 4]},\n\ @@ -103,7 +103,7 @@ \n\ The matrix is not required to be square.\n\ \n\ -When called with two or three output arguments and a spare input matrix,\n\ +When called with two or three output arguments and a sparse input matrix,\n\ @code{lu} does not attempt to perform sparsity preserving column\n\ permutations. Called with a fourth output argument, the sparsity\n\ preserving column transformation @var{Q} is returned, such that\n\ @@ -125,8 +125,8 @@ \n\ Given the string argument @qcode{\"vector\"}, @code{lu} returns the values\n\ of @var{P} and @var{Q} as vector values, such that for full matrix,\n\ -@code{@var{A} (@var{P},:) = @var{L} * @var{U}}, and @code{@var{R}(@var{P},:)\n\ -* @var{A} (:, @var{Q}) = @var{L} * @var{U}}.\n\ +@code{@var{A}(@var{P},:) = @var{L} * @var{U}}, and @code{@var{R}(@var{P},:)\n\ +* @var{A}(:,@var{Q}) = @var{L} * @var{U}}.\n\ \n\ With two output arguments, returns the permuted forms of the upper and\n\ lower triangular matrices, such that @code{@var{A} = @var{L} * @var{U}}.\n\