-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Line 7 in 6f08a89
| _inner(x, v1, v2) = v1 === v2 ? LinearAlgebra.norm(v1)^2 : LinearAlgebra.dot(v1, v2) |
This is really just for my curiosity. If appropriate, can you include a comment about why not just _inner(x, v1, v2) = LinearAlgebra.dot(v1, v2)? I can't tell if it's about accuracy, or performance, or ....
I know that LinearAlgebra.generic_norm2 does some rescaling for better numerical accuracy, and maybe dot does not.
Metadata
Metadata
Assignees
Labels
No labels