Registered Member
|
Hello,
I have to determine the rank on a sparse binary matrix. My strategy was to perform a QR decomposition and get the rank of R. I review a few library and Eigen look like a good alternative. I write the tiny example. Eigen look likes accept binary matrix.
At this point I am glue, how can I get the rank of R ? QR.rank() return 5 but R has only two columns with number differents from 0, so rank should be 2. Any suggestions ? Best, Tim ps: from the doc is unclear if Eigen can perform linear algebra on sparse binary matrix. If somebody know an alternative, please share, thank you ! |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]