Registered Member
|
running the following code snipped on a MatrixXd A produces a matrix U that has NaN's in it.
I'm curious (1) how is that possible and (2) how can I avoid it? This part of my application is not performance critical at all, so I'd be happy to use a different SVD algorithm if (for example) Jacobi simply sometimes runs into numerical issues. Thanks, Rafi |
Moderator
|
This is probably due to overflow issues, perhaps you could apply a scaling prior to factorization. We already had such a discussion in this forum a few month ago.
|
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]