Introduction to Sparse Matrices In Scilab - Projects
Introduction to Sparse Matrices In Scilab - Projects
Introduction to Sparse Matrices In Scilab - Projects
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
0204060801001200 20 40 60 80 100 120nnz = 1037Figure 5 – Sparsity pattern of the arc130 matrix.umfdir = fullfile (SCI ," modules "," umfpack "," examples ");filename = fullfile ( umfdir ," arc130 . rua ");A = ReadHB<strong>Sparse</strong> ( filename );Plot<strong>Sparse</strong> (A,"y+");The previous script produces the figure 5.6 The UMFPACK packageThe UMFPACK package provide several direct algorithms <strong>to</strong> computeLU decompositions of sparse matrices. The algorithms also solve sparse linearsystems of equations, that is, they solve the equation Ax = b, where A is asparse squares matrix and b is a sparse vec<strong>to</strong>r. These functions are presentedin the figure 6.The following example shows how <strong>to</strong> combine the umf_lufact functionwith the umf_lusolve function in order <strong>to</strong> solve the linear system of equationsAx = b.Afull = [2 3 0 0 0;17