Julia: `norm` kwarg appears in description of `isapprox`, but not in the signature

Created on 15 Sep 2015  路  7Comments  路  Source: JuliaLang/julia

Not sure if this is a bug or feature

Attn @stevengj, who git blame shows was in the vicinity

doc help wanted maths testsystem

Most helpful comment

isapprox still does not have a norm keyword for scalar arguments.

(abs or multiples thereof is the only sensible norm for scalars, but I suppose it wouldn't hurt to add a norm keyword anyway just for consistency.)

All 7 comments

I think this was because the norm keyword is not supported for scalar args.

This is still true. Might be nice to incorporate an example into the docstring?

cc @ararslan who was adjusting this recently

I think still true - up for grabs perhaps?

Just come across this issue. I think this is not true now.

isapprox still does not have a norm keyword for scalar arguments.

(abs or multiples thereof is the only sensible norm for scalars, but I suppose it wouldn't hurt to add a norm keyword anyway just for consistency.)

I supplied a possible fix for this issue in #35883. Please let me know if there's something that should be changed/improved.

Was this page helpful?
0 / 5 - 0 ratings