MAINT: logm will be more like matlab for singular matrices
BUG: fixed a problem with logm of singular integer matrices
Merge pull request #3281 from argriffing/debug-logm-fail

ENH: linalg: logm will be more like matlab for singular matrices