So the goal is to sort the entire matrix. Not just the columns or rows, which would be possible with j.bsort. The operation will be performed with videomatrices .. so they can get quiet big. Unfortunately I didn’t find a solution to perform this operation by using matrix-processing objects. Currently I’m using a workaround whereby I parse the matrix into lists, which then get sorted and afterwards recombined. Although this works quiet fine it is fairly cpu intensitiv and (because of the limitations of zl objects to 32768) I can’t process matrices greater than 208×156.
I was hoping that the gpbitonicsort shader could be used to do what I want to do (and let the GPU do the work).. but as I am just start working with shaders and the documentation on the shaders included in jitter is quiet poor, I can’t get it running. Strictly speaking I even don’t no if it does what I want to do .. :).
Hope anyone can shed some light on the functionality of this shader or has some other approach to the problem.