| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The following functions return famous matrix forms.
Construct a Hadamard matrix Hn of size n-by-n. The
size n must be of the form 2 ^ k * p in which
p is one of 1, 12, 20 or 28. The returned matrix is normalized,
meaning Hn(:,1) == 1 and H(1,:) == 1.
Some of the properties of Hadamard matrices are:
kron (Hm, Hn) is a Hadamard matrix of size
m-by-n.
Hn * Hn' == n * eye (n).
det (A) <= det (Hn) for all A with
abs (A (i, j)) <= 1.
Return the Hankel matrix constructed given the first column c, and (optionally) the last row r. If the last element of c is not the same as the first element of r, the last element of c is used. If the second argument is omitted, it is assumed to be a vector of zeros with the same size as c.
A Hankel matrix formed from an m-vector c, and an n-vector
r, has the elements
See also: vander, sylvester_matrix, hilb, invhilb, toeplitz.
Return the Hilbert matrix of order n. The
element of a Hilbert matrix is defined as
See also: hankel, vander, sylvester_matrix, invhilb, toeplitz.
Return the inverse of a Hilbert matrix of order n. This can be computed exactly using
The validity of this formula can easily be checked by expanding the binomial coefficients in both formulas as factorials. It can be derived more directly via the theory of Cauchy matrices: see J. W. Demmel, Applied Numerical Linear Algebra, page 92.
Compare this with the numerical calculation of inverse (hilb (n)),
which suffers from the ill-conditioning of the Hilbert matrix, and the
finite precision of your computer's floating point arithmetic.
See also: hankel, vander, sylvester_matrix, hilb, toeplitz.
Create an n-by-n magic square. Note that magic
(2) is undefined since there is no 2-by-2 magic square.
Return the Pascal matrix of order n if t = 0.
t defaults to 0. Return lower triangular Cholesky factor of
the Pascal matrix if t = 1. This matrix is its own
inverse, that is pascal (n, 1) ^ 2 == eye (n).
If t = 2, return a transposed and permuted version of
pascal (n, 1), which is the cube-root of the identity
matrix. That is pascal (n, 2) ^ 3 == eye (n).
See also: hankel, vander, sylvester_matrix, hilb, invhilb, toeplitz hadamard, wilkinson, compan, rosser.
Returns the Rosser matrix. This is a difficult test case used to test eigenvalue algorithms.
See also: hankel, vander, sylvester_matrix, hilb, invhilb, toeplitz hadamard, wilkinson, compan, pascal.
Return the Sylvester matrix of order
See also: hankel, vander, hilb, invhilb, toeplitz.
Return the Toeplitz matrix constructed given the first column c, and (optionally) the first row r. If the first element of c is not the same as the first element of r, the first element of c is used. If the second argument is omitted, the first row is taken to be the same as the first column.
A square Toeplitz matrix has the form:
See also: hankel, vander, sylvester_matrix, hilb, invhilb.
Return the Vandermonde matrix whose next to last column is c.
A Vandermonde matrix has the form:
See also: hankel, sylvester_matrix, hilb, invhilb, toeplitz.
Return the Wilkinson matrix of order n.
See also: hankel, vander, sylvester_matrix, hilb, invhilb, toeplitz hadamard, rosser, compan, pascal.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated on December, 26 2007 using texi2html 1.76.