Stable Softmax and LogSumExp

Implement stable softmax and logsumexp, including extreme logits and all -inf rows. A free ML coding interview task on NudgeCode: write it in Python and check it with tests in your browser. Medium · Numerics, Softmax, LogSumExp.

Implement stable logsumexp and softmax without calling built-in softmax/logsumexp. Support extreme logits, partial -inf values, and all -inf rows (logsumexp=-inf, softmax=zeros).