Sparse null space and orthogonal
Two simple functions that compute the NULL space and ORTHOGONAL basis of a sparse matrix using QR decomposition with row permutation.
For FULL matrices, Matlab stock functions NULL and ORTH use SVD decomposition, which is not available for SPARSE matrix.
Since Matlab 2009B (?), QR decomposition is available for sparse matrices, which can be used to estimate the orthogonal basis without converting matrix in FULL.
Cite As
Bruno Luong (2024). Sparse null space and orthogonal (https://www.mathworks.com/matlabcentral/fileexchange/27550-sparse-null-space-and-orthogonal), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Sparse Matrices >
Tags
Acknowledgements
Inspired: Computation of the Friedrichs and Poincare constants in 2D/3D
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.