-
Notifications
You must be signed in to change notification settings - Fork 323
Add generic pow method for arrays #1053
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
Conversation
@ maintainers, this seems to be failing because of something to do with |
|
Great thanks. Hopefully this will rebuild automatically once that gets merged? |
Once #1054 is merged, I think you'll need to fetch the latest |
I think I can just pull master in my branch and then push my branch right? |
That works too. The only disadvantage is that the commit history won't be as pretty as with a rebase. |
By the way, can I have some advice on the "error: unused import: |
Okay I've rebased. |
Yes, that's the issue. The simplest fix would be move |
Done, thank you. |
Damn, it looks like this is all duplicating a subset of #1042. I wish I knew about that! |
Closing in favour of #1042. |
Closes #1047.
Originally I was going to make separate
powi()
andpowf()
methods, but this isn't convenient becausenumtraits
groups them together using one method.One open question is how to get an integer array to take a float power and vice-versa, because
numtraits
doesn't seem to implement this use-case.I've written two tests, which are in the documentation. I hope that's sufficient.