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

Evaluate matrix condition number

Tags: None
(comma "," separated)
asorokovoy
Registered Member
Posts
2
Karma
0

Evaluate matrix condition number

Tue Sep 10, 2013 8:15 am
I want to evaluate condition number ( http://en.wikipedia.org/wiki/Condition_number ) for general case matrix in my program with using Eigen. I have see documentation but I have not found simple way for evaluate this value.
Could you prompt the fastest way for do this?
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
You can use the SVD:
Code: Select all
JacobiSVD<MatrixXd> svd(A);
double cond = svd.singularValues()(0) / svd.singularValues()(svd.singularValues().size()-1);
asorokovoy
Registered Member
Posts
2
Karma
0
Thank you for wery fast reply.

Yes, it is working method.
But in your way for evaluate conditon number we should evaluate all eigen numbers for AxA*.
But in case evaluate condition number we require only max and min eigen number of AxA*. So for matrices with big sizes we will do a lot of dimmy work.
Can we avoid this?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]