Post

Replies

Boosts

Views

Activity

Get sum of element-wise products of two arrays / vDSP
I did a quick scan for all methods in vdsp framework but didn't found a method for this specific task. Is there a method for that I may have overseen? float multiplyAndAccumulate (float* p1, float* p2, int N) {       float s = 0;       const float* e = p1 + N;       while (p1 != e)       {                 s += (*p1) * (*p2);                 p1++;                 p2++;       }       return s; }
3
0
461
May ’22
Universal Binary const data sharing resources
In a C++ application, I use a lot "static const char" to include data directly inside the binary. static const unsigned char temp6[] = { 3,49,43,113,35,91,2,233,99,119,212 .... From the size of the files, I get the impression that the data is inserted once for each architecture (arm64/x64), i.e. it exists twice. Is there anyway to share data directly between architectures, without the need to use extra shared resource files.
1
0
525
Sep ’20