HssMatrices.jl icon indicating copy to clipboard operation
HssMatrices.jl copied to clipboard

Positive Definitness

Open clarazen opened this issue 3 years ago • 4 comments

Hello Boris,

Does the approximation of a kernel matrix with hss guarantee to preserve positive definiteness? If yes, how does it achieve that?

Thank you!

clarazen avatar Aug 24 '21 08:08 clarazen

I would also like to know :)

mvsoom avatar Oct 20 '21 13:10 mvsoom

Hi - sorry for the silence! Somehow, I overlooked this completely.

As it stands, there is no guarantee - unless I overlook something. A fundamental problem is that both compression algorithms decouple the block-diagonal part from the off-diagonal. Only the off-diagonal part is compressed and even if some properties are conserved on this part, there is no guarantee that the overall matrix remain positive definite.

That being said, the truncation of the off-diagonal part can be treated as a perturbation, whose error is bounded by the compression tolerance). This can help to bound the error in the eigenvalues which, depending on the size of the eigenvalues, might be sufficient for you to guarantee definiteness. (See Chapter 7.2.2, Eigenvalue Sensitivity, Golub and van Loan - Matrix Computations)

bonevbs avatar Oct 20 '21 17:10 bonevbs

OK, thank you very much for your answer.

Since the block diagonal is conserved, I assume the rank of the matrix is expected to be conserved too?

mvsoom avatar Oct 21 '21 04:10 mvsoom

No, imagine you have a matrix with all entries equal to one. If you set all the off-diagonal blocks to 0, your rank will have increased from one to something higher.

bonevbs avatar Oct 21 '21 07:10 bonevbs