MAINT: raise warnings for logm of some possibly nearly singular matrices
Merge pull request #3287 from argriffing/logm-singular-warning

ENH: linalg: raise warnings for logm of some possibly nearly singular matrices