How to quickly find the minimal number of rows in a sparse matrix to form a full-rank sub-matrix?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Benson Gou
am 19 Mär. 2020
Beantwortet: Devineni Aslesha
am 23 Mär. 2020
Dear All,
I have a big sparse matrix A. For a given row, is it possible for me to find the minimal number of rows in A to form a full-rank sub-matrix (zero columns are deleted if zero-columns exist)?
For example, A = [0 0 1 0 3;0 2 6 0 0;1 0 5 3 1;0 2 1 4 0;-4 0 0 5 1;3 0 0 0 0;5 0 0 2 0;0 1 0 3 4].
1). For the given row #7, row #6 can form a sub-matrix with row #7.
rows_6_7 = [3 0 0 0 0;5 0 0 2 0]. Delet the zero columns, we have submatrix = [3 0; 5 2].
2). Given row #2, we can find 4 rows to form a full-rank submatrix. selected_rows = [0 2 6 0 0;0 2 1 4 0;0 1 0 3 4;0 0 1 0 3]. Submatrix = [2 6 0 0;2 1 4 0;1 0 3 4;0 1 0 3].
Thanks a lot.
Benson
0 Kommentare
Akzeptierte Antwort
Devineni Aslesha
am 23 Mär. 2020
Here is a similar question for your reference to find the minimal number of rows in a sparse matrix to form a full-rank sub-matrix.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Denoising and Compression finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!