Clear Filters
Clear Filters

Creat a positive definite matrix, which way is better?

2 views (last 30 days)
Hi everyone,
Suppose I have a positive definite matrix P and a non-singular matrix A, I realised there is a small numerical difference between K=(I-A)*P*(I-A)' and K_=P-A*P-P*A'+A*P*A'. If I want to create a positive definite matrix, which way should I use?
In some extreme cases, is it possible that K or K_ has very small negative eigenvalues?
Thanks

Accepted Answer

Matt J
Matt J on 12 Jan 2016
Edited: Matt J on 12 Jan 2016
Yes, if A has eigenvalues close to 1, then I believe neither K nor K_ will be positive definite with numerical robustness.
  4 Comments
Ming
Ming on 12 Jan 2016
Thanks a lot! By the way, does this numerical problem/hazard have a formal name?

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!