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

Optimised Ops.sfc for simple cases #973

Merged
merged 6 commits into from
Feb 18, 2019
Merged

Conversation

thomasp85
Copy link
Contributor

This PR adds a fast approach to +, -, *, / when the rhs is a simple numeric that should get applied to each element in the list...

for +/- the new methods kicks in when rhs is of length 1 or 2, for *// it kicks in if rhs is of length one or a strictly diagonal matrix

Further this PR adds st_normalize that leverage the C++ code for even faster normalisation (avoids some copying by doing all the manipulation in one pass)

@edzer edzer merged commit 26c9046 into r-spatial:master Feb 18, 2019
@edzer
Copy link
Member

edzer commented Feb 18, 2019

Great work, thanks!

edzer added a commit that referenced this pull request Feb 18, 2019
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.

None yet

2 participants