specfun_pascal — Returns the Pascal matrix.
P = specfun_pascal ( n ) P = specfun_pascal ( n , k )
a matrix of floating point integers, must be positive
a matrix of floating point integers, k=-1 returns the upper Pascal matrix, k=0 returns the symetric Pascal matrix, k=1 returns the lower triangular Pascal matrix, other values produce an error. Default k=0.
a nxn matrix of floating point integers
Returns the Pascal matrix.
The matrix U=specfun_pascal(n,1) is so that U'*U=S where S=specfun_pascal(n,0).
The performances of this algorithm have been optimized.