The numbers in the weights array should be explicitly cast to floats or else they all seem to be 0
Also shouldn't the inner loops be jj<4 and ii<4 instead of 3? Similarly the weights indexing should be weights[jj*4+ii] rather than 3.
The numbers in the weights array should be explicitly cast to floats or else they all seem to be 0
Also shouldn't the inner loops be jj<4 and ii<4 instead of 3? Similarly the weights indexing should be weights[jj*4+ii] rather than 3.