Is it possible to save the result in one of the input vectors in the vDSP structure

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.

+5
source share
1 answer

vDSP ( , , &input_vector[length/2] ). , , .

vDSP ; vDSP.

+4

All Articles