Mathematics |
Computational Considerations
The computational complexity of sparse operations is proportional to nnz
, the number of nonzero elements in the matrix. Computational complexity also depends linearly on the row size m
and column size n
of the matrix, but is independent of the product m*n
, the total number of zero and nonzero elements.
The complexity of fairly complicated operations, such as the solution of sparse linear equations, involves factors like ordering and fill-in, which are discussed in the previous section. In general, however, the computer time required for a sparse matrix operation is proportional to the number of arithmetic operations on nonzero quantities.
Sparse Matrix Operations | Standard Mathematical Operations |
© 1994-2005 The MathWorks, Inc.