MAINT: compute frobenius norm more efficiently

This should be equivalent.  I'm not sure how github would deal with multiple PRs to the same file, maybe it will be clever about merging?