Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
MAINT: Adjust type promotion in linalg.norm #10368
Relates to #10364.
Unfortunately the failing case there still doesn't work when the result is a scalar, due to falling afoul of #10322. We fix this by just not making any promise about the scalar case.
That seems pretty reasonable to me, since numpy makes it very hard to keep float32 scalars around anyway.