jblas-project / jblas

Linear Algebra for Java
http://jblas.org
BSD 3-Clause "New" or "Revised" License
590 stars 149 forks source link

How to find out if matrix is singular from LUDecomposition #102

Open nfrik opened 6 years ago

nfrik commented 6 years ago

Blas implementation of LUDecomposition always returns LUP, even for singular matrices. Wouldn't it be useful to throw an exception in case matrix is singular?