Hi,
I am trying to implement a spectral clustering algorithm in java. I am using jblas (as a maven dependency) for matrix algebra. The problem I am running into is I am getting negative eigenvalues for the Laplacian, which shouldn't be possible theoretically. In case of very small matrices (up to 5x5), the values are fine, but once the matrices start getting bigger (for even as small as 15x15), I am seeing negative eigenvalues (for example, in the attachments, the first eigenvalue is -0.05515). Anyone with experience of seeing dubious eigenvalues with Eigen.symmetricEigenValues method before?
Attached is my Laplacian and the eigenvalues I got from Eigen.symmetricEigenValues method.
Any suggestion/help is greatly appreciated.
Thanks,
Vijay