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

rank of matrix?

Tags: eigen, rank, matrix eigen, rank, matrix eigen, rank, matrix
(comma "," separated)
josealdo
Registered Member
Posts
1
Karma
0

rank of matrix?

Wed Jul 25, 2012 6:44 pm
In Eigen, is there a function of rank?

like this :

M=(1,0,0,
0,1,0,
0,0,0)

rank(M)=2

Thank you.
Waldfee
Registered Member
Posts
7
Karma
0

Re: rank of matrix?

Wed Jul 25, 2012 8:29 pm
Decomposition via FullPivLU or ColPivHouseholderQR might be an option.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: rank of matrix?

Wed Jul 25, 2012 9:22 pm
To give an example:

m.colPivHouseholderQr().rank();


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot]