Operator : ?

Discussion created by Peterp on Jun 4, 2009
Latest reply on Jun 5, 2009 by Peterp



i've the following kernel, i call it with a 5x5 inputstream, but in the resultstream every value is zero? What is wrong with this kernel i want the first  row to be set to 6.0


kernel void twopi(double input<>, out double out_result<>


int index = instance().y;

out_result = ((index==0)?6.0:1.0);