4x4 array in Brook+, need help

Discussion created by anushkagamage on Apr 22, 2009
Latest reply on May 30, 2009 by anushkagamage
4x4 array in Brook+

Hi all
I am new to BROOK+.Can anyone please send me references and relevant materials which supports for learn and study brook+ language.can anyone help to solve the following problem,pls,,
task to read an image 4x4 array ,
0  1  2  3
4  5  6  7
8  9 10 11
12 13 14 15

In this array I divided into 4 regions,, R1 (0,1,4,5)  R2(2,3,,6,7) R3(8,9,12,13)   R4(10,11,14,15),
The problem is how to write the parallel comparison brook+ program to get the minimum,maximum and average value of the regions,,

R1            R2            
0               10
1                11
4                14
5                15

  These comparison R1(0) with other 4 elements in R2 region and so on,,It should be paralleled comparison, because GPU can do it parallel y. Could you please send sample codings for BROOK+ program and supported links for solve this problem,,

Thanking You,
Anushka .