Array Difference

Gives positions of changes of an array. Help to retrieve which values have changed inside an array.

If several values have changed at the same time, changes are queued, one value is given by BLOC calculation. If the queue length is greater than 8192 an error message is generated: queue overflow in Array Difference module

input

Input array

index

Index (position) of the last change.

old value

Old value at the index position before it changes

new value

New value at the index position.

changed

Returns 1 if the array has changed, 0 otherwise. Changes are queued so it stays at 1 for several consecutive BLOC calculation.