This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Remove Row and Column in Sparse matrix

Tags: None
(comma "," separated)
wenluyang
Registered Member
Posts
5
Karma
0
Hi,
I have a project which asks me to compute eigenvalue and eigenvector using stiffness matrix and mass matrix got from NASTRAN.
But now I have problem to remove the Rows and Columns where entries are all zero.
Is there some ways to make it?
Thanks.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
You can compute and apply one (or two) PermutationMatrix to put all non-empty rows/columns in the top-left-corner, and then call conservative resize to squeeze the empty rows/cols.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]