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

Ensure NA returns use input vector length as needed #115

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

mjskay
Copy link
Contributor

@mjskay mjskay commented Jul 20, 2024

I encountered some inconsistent behavior in cdf() / density() / quantile() on a few distribution types that return NA_real_ for those functions because they did not repeat the returned NA to match the input length. This PR fixes that.

(I also checked all instances of NA_real_ in the repo to make sure they are consistent).

This is a minor fix so I didn't add it to NEWS, but happy to if you'd like an entry.

Copy link
Owner

@mitchelloharawild mitchelloharawild left a comment

Choose a reason for hiding this comment

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

Great, thanks a lot!

@mitchelloharawild mitchelloharawild merged commit dd5332b into mitchelloharawild:master Jul 31, 2024
6 checks passed
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.

2 participants