New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate l2_norm/l2_norm2 in favor of norm/norm2 #1075
Conversation
@@ -407,7 +407,7 @@ def pairwise_inner(self, other, product=None): | |||
|
|||
@Deprecated(pairwise_inner) | |||
def pairwise_dot(self, other): | |||
return self.pariwise_inner(other) | |||
return self.pairwise_inner(other) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems this was never exercised in tests before, is pairwise_inner
now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. Maybe it was not so wise to remove the test for pairwise_dot
. Was too lazy to open a separate PR for this.
Codecov Report
|
Following #1066, the implementations of
VectorArray.l2_norm
,VectorArray.l2_norm2
are moved to private_norm
,_norm2
methods.l2_norm
andl2_norm2
are deprecated so that there is only one method to compute the Euclidean norm of aVectorArray
. What that means (the Euclidean norm of thedofs
of the array) is clarified in the docstring.Moreover,
almost_equal
has been simplified by replacing the (unused)norm
parameter by thesup_norm
parameter.