You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The .parent() is set to the lattice in question, and .inner_product() behaves as expected, but the .norm() computes the standard Euclidean norm. This inconsistency causes confusion and bugs.
One issue in trying to fix this is that v.norm() currently returns essentially v.dot_product(v).sqrt(), so changing it to v.inner_product(v) in the IntegralLattice case would introduce some inconsistency...
This is not a bug, because the method is doing exactly what the documentation says it will do: the documentation of the norm method states that (by default) it returns the Euclidean norm (i.e., the ell^2-norm) of the vector.
If the name of the method is causing confusion, then perhaps it should be changed to something like p_norm, but anything like this would require discussion and a deprecation period.
From here:
The
.parent()
is set to the lattice in question, and.inner_product()
behaves as expected, but the.norm()
computes the standard Euclidean norm. This inconsistency causes confusion and bugs.Cc: @grhkm21
The text was updated successfully, but these errors were encountered: