Skip to content
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

Fix use of norm and remove vecnorm #242

Merged
merged 2 commits into from
Nov 6, 2018
Merged

Fix use of norm and remove vecnorm #242

merged 2 commits into from
Nov 6, 2018

Conversation

ararslan
Copy link
Contributor

@ararslan ararslan commented Nov 6, 2018

The behavior of norm(x, p) for matrices changed in JuliaLang/julia#27401 to be the same as norm(vec(x), p) and vecnorm was removed. The previous behavior of norm for matrices is now captured by opnorm. This updates our extensions to these functions to match, and emits deprecation warnings as appropriate.

As a somewhat related change, this also deprecates the positional dimension argument to sum in favor of keyword arguments, in keeping with Base.

Properly fixes #231, which was already closed, and should fix an error in SchattenNorms observed with JuliaCIBot (see here).

@ararslan ararslan force-pushed the aa/no-vecnorm branch 2 times, most recently from ac19049 to 5dbd45d Compare November 6, 2018 00:44
@ararslan
Copy link
Contributor Author

ararslan commented Nov 6, 2018

cc @stevengj, who opened #231.

test/test_socp.jl Outdated Show resolved Hide resolved
The behavior of `norm(x, p)` for matrices changed in Julia PR 27401 to
be the same as `norm(vec(x), p)` and `vecnorm` was removed. The previous
behavior of `norm` for matrices is now captured by `opnorm`. This
updates our extensions to these functions to match, and emits
deprecation warnings as appropriate.

As a somewhat related change, this also deprecates the positional
dimension argument to `sum` in favor of keyword arguments, in keeping
with Base.
opnorm will create OperatorNormAtom objects directly for p=2.
Copy link
Contributor

@omus omus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me

@ararslan ararslan merged commit 942a771 into master Nov 6, 2018
@ararslan ararslan deleted the aa/no-vecnorm branch November 6, 2018 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

norm(matrix) -> opnorm(matrix) in Julia 0.7
5 participants