1

我需要使用 vDSP 对两个数组进行比较操作。我没有看到任何直接功能可以做到这一点。

//....sourceArray is filled up with data
float sourceArray = new float[arrayLength];

//....destArray is filled up with data
float destArray = new float[arrayLength];


//...need to compare the two arrays 
//...(for eg., how many elements are equal/greater than/less than etc., If so then 1, else 0)

使用现有 vDSP 功能的任何解决方法也将有所帮助。

我以前使用过很多 MMX、SSE 和 SSE2 Intrinsics,并且有很多功能可以做到这一点。但是在这里找不到类似的功能。

4

0 回答 0