haskell / vector

An efficient implementation of Int-indexed arrays (both mutable and immutable), with a powerful loop optimisation framework .
Other
365 stars 139 forks source link

add rotations #189

Open matthewleon opened 6 years ago

matthewleon commented 6 years ago

Would PRs to add rotation functions be accepted?

cartazio commented 6 years ago

You mean like mod the size of the vector style coordinate shift?

On Sun, Dec 10, 2017 at 1:14 PM Matthew Leon notifications@github.com wrote:

Would PRs to add rotation functions be accepted?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/haskell/vector/issues/189, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAQwv61rljypsnkQeljYuElwPV0BN3Tks5s_B-TgaJpZM4Q8lms .

matthewleon commented 6 years ago

Yes. Of course it's not hard to do by composing functions that the library already has, but I also find that it's a fairly common thing to want to do with a vector.