MAINT: remove some inf-related warnings from logsumexp
MAINT: mis-parenthesization
Merge pull request #4016 from argriffing/logsumexp-warnings

MAINT: remove some inf-related warnings from logsumexp