Make large-scale mathematical computations and image calculations, optimized for high performance.
Questions tagged [accelerate]
74 questions
0
votes
1 answer
Update cell values of a big pandas dataframe
I have a dataframe with 7K columns and and same 7K values as indices
ex.
c1 c2 .... c7000
c1
c2
.
.
.
c7000
I want to update each cell of this dataframe on some condition.
Can…

Shweta N
- 11
- 1
0
votes
0 answers
Find median for an image array for background estimation fast in Swift/ObjectiveC
I need to estimate the background across multiple frames of a stationary video (not-moving camera). I have a number of frames and want to calculate the median for each pixel across all frames (usually 10 to 100 frames). I was able to do that with…

Mando
- 11,414
- 17
- 86
- 167
0
votes
0 answers
Not able to enable XNNPACK (TFLite) properly on Objective-C for ARM64 (Xcode 12.5)
Learnt that XNNPACK can accelerate computation a lot in general, thus tried on Xcode/Objective-C. Here's the imp according to official doc
// add XNNPACK
TFLInterpreterOptions *options = [[TFLInterpreterOptions alloc] init];
options.useXNNPACK =…

Kitetaka
- 527
- 4
- 20
0
votes
1 answer
qemu-img convert rbd volumes between different ceph clusters accelerate
Is there an elegant way to copy an RBD volume to another Ceph cluster?
I calculate the convert time with qemu-img 2.5 version or qemu-img 6.0 version, by copying a volume(capability is 2.5T and 18G only used) to another Ceph cluster.
qemu-img [2.5…

Victor Lee
- 2,467
- 3
- 19
- 37
0
votes
1 answer
Swift - read two audio files and calculate their cross-correlation
(I'm using this as a reading file reference, this as an Objective-C clue that lacks implementation, this as the closest implementation I've seen so far in Objective-C.)
I'm trying to get a cross-correlation array, calculated from two audio arrays in…

Miguel de Sousa
- 131
- 16
0
votes
0 answers
Swift - create sine waves with high frequencies
I have the following problem: for the sake of amplitude modulation, I want to generate a sine wave with a given frequency. For lower frequencies (such as 440 Hz) the algorithm works well, but dealing with high frequencies (for example 20.000 Hz), I…

Ulrich Vormbrock
- 369
- 2
- 13
0
votes
3 answers
Fast vectorized pixel-wise operations on images
I want to measure the similarity degree between two grayscale same sized images using mean square error. I can't use any framework which is not a part of macOS SDK(e.g. OpenCV, Eigen). Simple realization of this algorithm without vectorization looks…

borista
- 23
- 6
0
votes
1 answer
Print a matrix stored as a SparseMatrixStructure
I am working with Apple's Accelerate framework, using Sparse Matrix operations.
I have created a sparse matrix thus:
var values: Array = [0.125, 0.08, -0.01, 0.405, -0.02, 0.005]
var rowIndices: [Int32] = [0, 1, 2, // Column 0
…

Tomm P
- 761
- 1
- 8
- 19
0
votes
1 answer
How to accelerate the operation including intersection and union of sets under the loops in python
judge = [[0,3,5], [1,2,4], [1,5,6], [],..., []]
a = [[1,2], [2,3,4,5,7,9], [1,4,5], [],..., []]
# len(judge) == len(a)
res_intersect = []
for i in range(len(a)):
for j in range(i+1,len(a)):
if…

wyhhyw
- 3
- 1
0
votes
1 answer
Matlab: Speed up "find() for each element in ND array"
I have an ND array and, for each element in the array, I need to find the index of the largest element in a vector that is below it. I'm doing this maaaany times so I really super extra interested in it being as fast as possible.
I have written a…

Fredrik P
- 682
- 1
- 8
- 21
0
votes
0 answers
How to optimise swift code for drawing large datasets in realtime in graphs that can scroll and zoom
I am writing my own code in swift to draw a graph to display a large data set. (The reason not to use existing frameworks is I would like to use logarithmic and linear views, as well as user interaction with the graph). I need help trying to speed…

samp17
- 547
- 1
- 4
- 16
0
votes
1 answer
swift Accelerate: the vDSP enum
I've been going through the new Accelerate framework for swift as I am looking to optimise all of my vector calculations.
I found the following enum called vDSp which avoids me re-writing the entire set of vector maths:
…

triple7
- 542
- 3
- 17
0
votes
0 answers
error: use of undeclared type 'Accelerate'
Converting YUV420 to RGB using Accelerate Framework in swift.
call to vImageConvert_420Yp8_Cb8_Cr8ToARGB8888is throwing
Thread 1: EXC_BAD_ACCESS (code=1, address=0x108bc9000)
While debugging source and destination pointer then showing this…

Afsar edrisy
- 1,985
- 12
- 28
0
votes
0 answers
How to move bitmap of background at a varying speed?
I encountered an unexplainable problem. This might contitute a flaw in the android studio.
Mainly: I am developing a game, where the background (grass or trees) moves in the opposite direction to the player, pretty simple.
Both of them (grass and…

Kolorowy Paw
- 1
- 1
0
votes
1 answer
Programatically create storage arrays for DSPSplitComplex complex numbers
I am using Apple's Accelerate framework with swift. I am working with DSPSplitComplex numbers to work with complex vectors.
I would like to create a filter bank (An array of filters). To do this, I iterate through a loop, and add the result to my…

samp17
- 547
- 1
- 4
- 16