spectral
spectral copied to clipboard
use numpy.linalg.pinv() instead of numpy.linalg.inv()
See #159 for the singular matrix problem.