"Xspys"=>"X Squared Plus Y Squared" adds the square of vector Y to the square of vector X. input_stride2 indicates that the input vectors will skip every other entry. This is useful for calculating fft power, as the x vector can be the real components, and the y vector can by the imaginary components.
- Parameters
-
| x_ptr | x vector input. 24bit integers unpacked. |
| y_ptr | y vector input. 24bit integers unpacked. |
| out_ptr | output vector. 24bit integers unpacked, no extra stride, and rounded by rounding_bits. output can overlap either or both inputs. |
| length | Number of elements in the vectors (data samples). Must be a multiple of 2, at least 4, and no greater than 512. Does not include the stride. |
| rounding_bits | Number of bits to round the output by. 0 => no rounding, maximum of 31. |
- Returns
- kAxonResultSuccess on success or a negative error code (see nrf_axon_result_e)