-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Accelerate] [vForce] New vForce Overlay #23153
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
This PR contains a suite of overlays to the vForce transcendental and trigonometric functions on vectors of any length. The overlays simplify the API to the existing functions and accept collections that implement `_ContiguousCollection`.
Mainly renames of functions (e.g. `ceiling` to `ceil`) and parameters (e.g. `numerators` to `dividends`).
* Create individual `log2`and `log10` functions. * Rename `exponent` to `logb`
Based on our discussion on the basic scalar math functions with Wdyt, @stephentyrone? |
Keep |
* `squareRoot` -> `sqrt` * `reciprocalSquareRoot` -> `rsqrt` * `xxx(piTimes:...)` -> `xxxPi(:_....)`
Changed all the Cheers. |
I landed this (with some minor changes) as #24152. This PR can be closed out. |
This PR contains a suite of overlays to the vForce transcendental and trigonometric functions on vectors of any length.
The overlays simplify the API to the existing functions and accept collections that implement
_ContiguousCollection
.This PR contains a Swift-friendly version of each function in vForce, removing the requirement for the developer to separately supply the element count of the source and destination vectors.
cc: @moiseev @airspeedswift @stephentyrone