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

rankUpdate in Eigen 3.1.0-alpha2

Tags: None
(comma "," separated)
Dtag
Registered Member
Posts
7
Karma
0

rankUpdate in Eigen 3.1.0-alpha2

Tue Apr 10, 2012 12:43 pm
Hi,

Eigen 3.1.0-alpha2 feature a new rankUpdate method to update the LLT decomposition. It was added to the LLT class. As far as I can tell, that means that after successfully decomposing a matrix into LLT, one can use the rankUpdate method. In contrast, Matlab's cholupdate procedure is performed on the L factor of the decomposition.
My problem with Eigens implementation is, that my LLT does not result from a decomposition of a matrix. Instead, the L is computed directly. Since I cannot instantiate an LLT object, already having the L factor of the decomposition, I can not use the rankUpdate method.
So far I am using "internal::llt_inplace<double,Lower>::rankUpdate" which appears to do pretty much the same as cholupdate as far as I can tell.

Am I missing something or is there simply a public interface for this function missing?

Thanks,
Frank
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
You are right, there is no pubic API yet for such low level use cases. A workaround would also to const-cast the Matrix<> object returned by .matrixLLT() to overwrite its content, but this might be dangerous.
Dtag
Registered Member
Posts
7
Karma
0
Ok thanks! I will stick to my solution for now then and patiently wait for a public function in some later release.


Bookmarks



Who is online

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