compute determinant using Cholesky decomposition
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I need to compute determinant of a positive definite, hermitian matrix in fastest way for my code. So the best way is to compute by cholesky decomposition, but on writing code for it there is no improvement over MATLAB built-in function "det" which is based on LU decomposition (more complex than cholskey). Can anyone help, can we modify matlab buit-in function "chol" to determine determinant from it directly.
2 Kommentare
Antworten (2)
Walter Roberson
am 13 Jun. 2012
Keep in mind that for sufficiently large matrices, MATLAB is going to invoke multi-threaded library code that has been heavily optimized for the target architectures. (It doesn't do that for smaller matrices because there is notable overhead in re-arranging the arrays into the form required by those libraries.)
0 Kommentare
Teja Muppirala
am 14 Jun. 2012
You could try
prod(diag(chol(A)))^2
But I have no idea if/when this would be faster than simply det(A).
Siehe auch
Kategorien
Mehr zu Linear Algebra finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!