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

Improve na_omit for vectors without NA #492

Merged
merged 3 commits into from
Jun 15, 2016
Merged

Improve na_omit for vectors without NA #492

merged 3 commits into from
Jun 15, 2016

Conversation

artemklevtsov
Copy link
Contributor

@artemklevtsov artemklevtsov commented Jun 13, 2016

If lengths of the input and output vectors are equal simply return input vector. Also create out vector without initialization (no_init).

Comparison old and new version of the na_omit: https://gist.github.com/artemklevtsov/38ce7eda7d6eecead5582fae997691b4

If lengths of the input and output vectors are equal simply return input vector. Also create out vector without initialization (`no_init`).
@eddelbuettel
Copy link
Member

Thanks for this. It looks reasonable. But as you mention the testing gist, would you mind adding one, tow, or more unit tests to Rcpp to test this?

An addition to the ChangeLog file would also be welcome.

@eddelbuettel
Copy link
Member

Looks good, will try to examine more closely this eve.

@eddelbuettel eddelbuettel merged commit 33b67b8 into RcppCore:master Jun 15, 2016
eddelbuettel added a commit that referenced this pull request Jun 15, 2016
@artemklevtsov artemklevtsov deleted the patch-1 branch June 19, 2016 05:45
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