In vDSP functions in the Accelerate Framework, all functions require a result vector. Is it right to pass the input vector (or one of the input vectors) as the result vector if I no longer need what was in the original input vector?
An example of what I mean:
vDSP_vsadd(input_vector,1,scalar_addition,input_vector,1,length);
This will take input_vector and add scalar_addition to all elements. The result will be saved in input_vector.
source
share