Is there a more efficient way to get the sum of absolute differences of two memory blocks arrays of double
in C/C++ than to perform a loop on the array elements? So, what I wonder is if there is a function for this purpose similar to memset
, memcpy
, memcmp
etc.
How do you define the difference?
The memory blocks contain double
values, and what I need is the sum of the absolute numerical differences between the values in the corresponding indexes of the memory blocks arrays.