15.11.2014 Views

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Sparse Matrix Operations<br />

Cuthill-McKee ordering is concentrated within the band, but it is almost as<br />

extensive as the first two orderings. For the approximate minimum degree<br />

ordering, the relatively large blocks <strong>of</strong> zeros are preserved during the<br />

elimination and the amount <strong>of</strong> fill-in is significantly less than that generated<br />

by the other orderings. The spy plots below reflect the characteristics <strong>of</strong> each<br />

reordering.<br />

0<br />

Original<br />

0<br />

Reverse Cuthill−McKee<br />

0<br />

Minimum Degree<br />

10<br />

10<br />

10<br />

20<br />

20<br />

20<br />

30<br />

30<br />

30<br />

40<br />

40<br />

40<br />

50<br />

50<br />

50<br />

60<br />

0 10 20 30 40 50 60<br />

nz = 1022<br />

60<br />

0 10 20 30 40 50 60<br />

nz = 968<br />

60<br />

0 10 20 30 40 50 60<br />

nz = 636<br />

Cholesky Factorization<br />

If S is a symmetric (or Hermitian), positive definite, sparse matrix, the<br />

statement below returns a sparse, upper triangular matrix R so that R'*R = S.<br />

R = chol(S)<br />

chol does not automatically pivot for sparsity, but you can compute<br />

approximate minimum degree and pr<strong>of</strong>ile limiting permutations for use with<br />

chol(S(p,p)).<br />

Since the Cholesky algorithm does not use pivoting for sparsity and does not<br />

require pivoting for numerical stability, chol does a quick calculation <strong>of</strong> the<br />

amount <strong>of</strong> memory required and allocates all the memory at the start <strong>of</strong> the<br />

factorization. You can use symbfact, which uses the same algorithm as chol,<br />

to calculate how much memory is allocated.<br />

6-33

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!