Convert gvecToDetectorXY to operate on an array at C level

Just for the oscill matrix code, this could be a gufunc
to be more general