You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). cgmS(C,b) (https://se.mathworks.com/matlabcentral/fileexchange/56209-cgms-c-b), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (3.36 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | edited comments at end of m-file |
