Make large-scale mathematical computations and image calculations, optimized for high performance.
Questions tagged [accelerate]
74 questions
0
votes
0 answers
pointers using accelerate framework for swift
I am writing an application that uses constant Q transform using swift. Whilst searching the internet I stumbled upon a GitHub rep that implements constant q transform using Apple's accelerate framework but for C++
I have read through and…

samp17
- 547
- 1
- 4
- 16
0
votes
0 answers
Is min(vector, scalar) doing so element-wise available in Apple Accelerate API
I have a vector v and a scalar s (either float or double). I am looking for a func that will achieve min(v, s) in Accelerate, that should return a vector u, such that
u[0] = min(v[0], s)
u[1] = min(v[1], s)
etc.
I browsed thru the documentation,…

kawingkelvin
- 3,649
- 2
- 30
- 50
0
votes
1 answer
Is there an iOS accelerate methods for doing elementwise maximum (np.maximum)?
I am investigating using iOS Accelerate to perform some fast math on a mobile device. I would need the equivalent of np.maximum in numpy. This is an element wise maximum between 2 ndarray.
I have been searching documentations related to Apple…

kawingkelvin
- 3,649
- 2
- 30
- 50
0
votes
1 answer
Why doesn't vDSP_maxv find the max value in the vector?
vDSP_maxv is not assigning the max value to output in the code below.
I expected the last line to print 2, but instead it prints something different each time, usually a very large or small number like 2.8026e-45
I've read this tutorial, the…

ASDFQWERTY
- 399
- 4
- 8
0
votes
0 answers
Discrete Fourier Transform in Swift using Accelerate
I am trying to implement the Accelerate DFT in Swift in the hope that this will deal with arbitrary sample sizes and not 2^n sample sizes only.
I am struggling to pass values to this function: vDSP_DFT_ExecuteD(...). My code is pasted below and I…

Saif
- 163
- 2
- 11
0
votes
1 answer
How to port scipy.signal.fftconvolve into swift using accelerate framework?
I am working on a voice pitch identification problem in iOS, For analysis purpose i was using python it gave me appropriate results.... But when I tried to recreate the same thing in iOS using accelerate framework it is giving incorrect or weird…

Ashif Khan
- 9
- 1
- 4
0
votes
0 answers
How can you solve an augmented Matrix in swift?
Say you have this augmented Matrix:
1 1 0 0 = 1
0 0 1 1 = 1
40 10 40 10 <=50
I've tried using the accelerate framework but despite a couple hrs and a lot of google I can't figure this one out. Is there a reasonable way to solve this in Swift?

36 By Design
- 3,203
- 3
- 18
- 18
0
votes
1 answer
cabal install accelerate fails
The error is :
mtl-2.2.1 failed during the building phase. The exception was:
ExitFailure 1
primitive-0.6.1.0 failed during the building phase. The exception was:
ExitFailure 1
text-1.2.2.1 failed during the building phase. The exception…

vivace
- 59
- 9
0
votes
1 answer
Equivalent of FFTW's fftw_plan_r2r_2d in KISS FFT
Currently I am using FFTW's "fftw_plan_r2r_2d" with FFTW_REDFT10 as a kind and FFTW_ESTIMATE as the flag in my project. I am thinking of using KISSFFT for the transforms.I need the set of calls needed to perform the same operation in KISS FFT.
I…

deathstroke
- 1
- 1
0
votes
1 answer
crash in vImage convert function
I want to convert a planar greyscale image where each pixel is stored in 32-bit floats into a XRGB image on Mac OS X. vImage seems to be the most appropriate tool. I wrote a short function that does that, but it crashes in the vImage call with a…

Jean-Denis Muys
- 6,772
- 7
- 45
- 71
-1
votes
1 answer
How to deal with NaN in large arrays using swift
I am using the swift accelerate APIs to process some data. However a few of these data points contain NaN values (result of trying to divide a zero value).
My question is can I easily deal with this using any inbuilt swift function? I am looking at…

samp17
- 547
- 1
- 4
- 16
-1
votes
1 answer
Accelerate vDSP FFT resulting in NaN under demanding scenario
I'm using the vDSP framework for a real-time audio application based on FFT computation.
After having lots of problems trying to figure out why the algorithm was producing incorrect results, I found out the following comment on the official vDSP…
-1
votes
1 answer
Anaconda Accelerate dot product is 2x slower than plain NumPy
Why does Anaconda Accelerate compute dot products slower than plain NumPy on Python 3? I'm using accelerate version 2.3.1 with accelerate_cudalib 2.0 installed, Python 3.5.2 Windows 10 64-bit.
import numpy as np
from accelerate.cuda.blas import dot…

Default picture
- 710
- 5
- 12
-1
votes
1 answer
Cannot convert value of same type
I cannot seem to call vDSP* accelerate functions. I get the following error:
Cannot convert value of type 'UnsafePointer' to expected argument type 'UnsafePointer'
Sample code:
var m:Float = 0.0 as! Float
var points :…

George
- 193
- 1
- 8