Skip to content

Fixed median checknan help message#8605

Closed
tinybike wants to merge 3 commits into
JuliaLang:masterfrom
tinybike:master
Closed

Fixed median checknan help message#8605
tinybike wants to merge 3 commits into
JuliaLang:masterfrom
tinybike:master

Conversation

@tinybike

@tinybike tinybike commented Oct 7, 2014

Copy link
Copy Markdown

No description provided.

@ivarne

ivarne commented Oct 7, 2014

Copy link
Copy Markdown
Member

We should probably be clare on what happens if checknan=false also?

Also reference the first PR #8602

@simonster

Copy link
Copy Markdown
Member

Does the checknan option even make sense? It doesn't ignore the NaNs; it just gives the median as if they're sorted to the right. Is there a reason someone would want that behavior?

Also, the change to base.rst needs to be in restructured text format, i.e. \" should be double backticks. If you want to update helpdb.jl you should do so by running make -C doc helpdb.jl, although you can also just change base.rst and wait for someone else to update helpdb.jl.

@simonster

Copy link
Copy Markdown
Member

cc @StefanKarpinski since it looks like you first implemented checknan. Is this just a performance optimization to avoid having to check the entire vector for NaNs?

@StefanKarpinski

Copy link
Copy Markdown
Member

Yikes. I don't even remember doing that. But yes, I think it's just a performance optimization.

@simonster

Copy link
Copy Markdown
Member

If I add @inbounds, the cost of the NaN check is about 4%. Is that worth the extra option?

@StefanKarpinski

Copy link
Copy Markdown
Member

Probably not. Just get rid of it.

@simonster simonster closed this in e24fac0 Oct 7, 2014
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.

4 participants