cgmS(C,b)

Solves Ax=b using the conjugate gradient method when A is sparse.
56 Downloads
Updated 29 Mar 2016

View License

Solves Ax=b using the conjugate gradient method; it's capable of quickly solving equations with very large sparse matrices (even those that exceed MATLAB's storage limitations).
usage (examples at end of m-file):
x=cgmS(C,b);
In the above command, C is the matrix A stored in a row-compressed format (this is explained at end of m-file)

This program is most useful for large sparse matrices (but it will work on non-sparse matrices). For non-large matrices it might be easier, and faster, to use cgm(A,b), which is also available via MATLAB's file exchange.

Cite As

Mark Holmes (2024). cgmS(C,b) (https://www.mathworks.com/matlabcentral/fileexchange/56209-cgms-c-b), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Linear Algebra in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0

edited comments at end of m-file