Home > freetb4matlab > special-matrix > pascal.m

pascal

PURPOSE ^

%

SYNOPSIS ^

function retval = pascal (n, t)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {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 factor of 
% the Pascal matrix if @code{@var{t} = 1}.  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} = 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})}.
%
% @seealso{hankel, vander, sylvester_matrix, hilb, invhilb, toeplitz
%           hadamard, wilkinson, compan, rosser}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003