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
Why fixed size? Some problems require unknowable-sized arrays. #53
Comments
You can use a normal swift array in the same way you use a let array1: [Double] = (1..<100).map({ Double($0) })
let array2: [Double] = (1..<100).map({ 2 * Double($0) })
let result = dot(array1, array2)
|
Thank you for the clarification. I'll have to revisit this project after conversion to Swift 3.0 (I stopped as soon as I saw the number of conversion issues). I'm interested in a complete library like this one; and I very much like that the pointers are used in such a clean way. But for now I'm just writing wrappers around each of the Accelerate functions I use. I also think that 2 of functions I listed above (vDSP_vmmaD, and vDSP_vmmsbD) would be useful additions. |
Clarified on the readme. I will create a new ticket for porting over to Swift 3.0. About |
I was going to leave a request to add some additional operations that use two+ arrays: vDSP_vmulD, vDSP_vmmaD, and vDSP_vmmsbD. However, I realized that as-is I can't even use this project because the arrays are fixed size. For the arrays I use, the ultimate length is unknowable at initiation. I can see the performance benefits to using a fixed size array, but it removes a lot of flexibility.
The text was updated successfully, but these errors were encountered: