| |
| | [No title] |
 | | n putRow (M, i) put "" end for end putMatrix % putOutputMatrices(M, L, Lt) % - This procedure outputs a matrix M, its factor L and L transpose % as per the example in Figure 2 of the handout. |
 | | n if value (M, i, j) or doIntersect (L (i), L (j)) then setValue (L, i, j) end if end for setValue (L, j, j) end for end symbolicCholeskyCol % getRow(M, row) % - This procedure inputs row 'row' of M according to the format % specified by the handout. |
 | | n if line (col) = "*" then setValue (M, row, col) elsif line (col) not= " " then assert false % Can't happen end if end for end getRow % testMatrix(M, choleskyCandidate, error) % - This procedure tests a sparsity pattern to see if it is a % valid candidate for factoring. |
| www.cs.toronto.edu /~dianeh/148/96s/a3/soln/factor (1811 words) |
|