Closed afossa closed 2 years ago
Fixed. Please try master branch. Thanks!
The eigen decomposition works fine now, but I am getting a NullPointerException
if I try to compute the inverse of a matrix from its Cholesky decomposition
Exception in thread "main" java.lang.NullPointerException
at smile.math.blas.openblas.OpenBLAS.potrs(OpenBLAS.java:1001)
at smile.math.matrix.Matrix$Cholesky.solve(Matrix.java:2588)
at smile.math.matrix.Matrix$Cholesky.inverse(Matrix.java:2563)
The issue is solved by re-setting Matrix.Cholesky.lu.uplo
to a non-null value, although I am still investigating how this trick affects the solution
I went too far on uplo. It is fixed now.
Describe the bug Computing the eigenvalues of a symmetric matrix
M
(withM.uplo
equal toLOWER
orUPPER
) returns anEVD
object whoseVr
matrix has theuplo
property still set to eitherLOWER
orUPPER
.Expected behavior Independently from the
uplo
of the input matrix,EVD.Vr.uplo
should benull
.Actual behavior
EVD.Vr.uplo
is the same asM.uplo
due to the fact thatM
is firstly cloned and thenVr
is overwritten on the clone ofM
.Code snippet
Additional context Smile library: fresh clone of
master
branch Java: OpenJDK 11.0.11 OS: Ubuntu 18.04 Linux 5.4.0