BUG: linalg: norm was computing and then ignoring a product
MAINT: linalg: some more clean up in norm: 'nd' was defined but not used
Merge pull request #3539 from WarrenWeckesser/bug-norm-performance

BUG: linalg: norm was computing and then ignoring a product