3 Replies Latest reply on Jun 5, 2009 9:37 AM by Peterp

    Operator : ?




      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);