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

Add norm kwarg to isapprox #35883

Merged
merged 4 commits into from
May 14, 2020

Conversation

sloede
Copy link
Contributor

@sloede sloede commented May 14, 2020

This PR (hopefully) fixes #13132.

base/floatfuncs.jl Outdated Show resolved Hide resolved
@stevengj
Copy link
Member

This seems is fine to me. I guess it is useful for generic programming, e.g. if you want to pass an L1 norm for array arguments but don't want to special-case numeric arguments.

@stevengj
Copy link
Member

Needs a NEWS item.

@sloede
Copy link
Contributor Author

sloede commented May 14, 2020

Would something like

* The function `isapprox(x,y)` now accepts the `norm` keyword argument also for numeric (i.e., non-array) arguments `x` and `y` ([#35883]).

be appropriate (added under Standard library changes)?

@sloede sloede force-pushed the add-norm-kwarg-to-isapprox branch from 8080688 to d3fd706 Compare May 14, 2020 14:59
@sloede
Copy link
Contributor Author

sloede commented May 14, 2020

I added the NEWS item & did a rebase. Thank you for your feedback!

@StefanKarpinski StefanKarpinski merged commit e58bc72 into JuliaLang:master May 14, 2020
@sloede sloede deleted the add-norm-kwarg-to-isapprox branch May 14, 2020 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

norm kwarg appears in description of isapprox, but not in the signature
4 participants