Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@DanielLichtblau, you're right, it only happens when I use a = DiagonalMatrix[Table[10.^-10, {10000}]];, say. This is weird, but not terribly relevant in practice.
@DanielLichtblau (or others), the Do loop in logdet2 above seems to mess up the storing of the matrix in some way, causing CholeskyDecomposition to slow down enormously (for large matrices). I tried applying Developer`ToPackedArray but to no avail. Any ideas what is happening?