Mercurial > hg > octave-lyh
changeset 12485:f5a5e5252b5a
Fix incorrect statement in documentation for pascal.m. Bug #32523.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 27 Feb 2011 18:21:46 -0800 |
parents | 9c831d357e6f |
children | 32279948bf3b |
files | scripts/ChangeLog scripts/special-matrix/pascal.m |
diffstat | 2 files changed, 12 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2010-02-27 Rik <octave@nomad.inbox5.com> + + * special-matrix/pascal.m: Fix incorrect statement in documentation + for pascal.m. Bug #32523. + 2011-02-26 Robert T. Short <octave@phaselockedsystems.com> * polynomial/polyval.m: Compute offset/normalization only when needed.
--- a/scripts/special-matrix/pascal.m +++ b/scripts/special-matrix/pascal.m @@ -21,14 +21,15 @@ ## @deftypefn {Function File} {} pascal (@var{n}) ## @deftypefnx {Function File} {} pascal (@var{n}, @var{t}) ## Return the Pascal matrix of order @var{n} if @code{@var{t} = 0}. -## @var{t} defaults to 0. Return lower triangular Cholesky@tie{}factor of -## the Pascal matrix if @code{@var{t} = 1}. This matrix is its own +## @var{t} defaults to 0. Return the pseudo-lower triangular +## Cholesky@tie{}factor of the Pascal matrix if @code{@var{t} = 1} (The sign +## of some columns may be negative). This matrix is its own ## inverse, that is @code{pascal (@var{n}, 1) ^ 2 == eye (@var{n})}. -## If @code{@var{t} = -1}, return its absolute value. This is the -## standard Pascal triangle as a lower-triangular matrix. +## If @code{@var{t} = -1}, return the true Cholesky@tie{}factor with strictly +## positive values on the diagonal. ## If @code{@var{t} = 2}, return a transposed and permuted version of -## @code{pascal (@var{n}, 1)}, which is the cube-root of the identity -## matrix. That is @code{pascal (@var{n}, 2) ^ 3 == eye (@var{n})}. +## @code{pascal (@var{n}, 1)}, which is the cube root of the identity +## matrix. That is, @code{pascal (@var{n}, 2) ^ 3 == eye (@var{n})}. ## ## @seealso{hankel, vander, sylvester_matrix, hilb, invhilb, toeplitz, ## hadamard, wilkinson, compan, rosser}