I use LAPACK in a c code that allows me to inverse a matrix. to be more precise, I use dgetrf_ then dgetri_ to do the inversion.
But as I'm dealing with big matrices and as i don't know if the matrices will be invertible or not, I loose a lot of time tring to inverse an non-invertible matrix... Is there a way, using LAPACK, to check this ?