Loop over row

Hi,

Just to transform a code in Knime workflow :

int n = inreal.length;
    for (int k = 0; k < n; k++) {  // For each output element
        double sumreal = 0;
        double sumimag = 0;
        for (int t = 0; t < n; t++) {  // For each input element
            sumreal +=  inreal[t]*Math.cos(2*Math.PI * t * k / n) + inimag[t]*Math.sin(2*Math.PI * t * k / n);
            sumimag += -inreal[t]*Math.sin(2*Math.PI * t * k / n) + inimag[t]*Math.cos(2*Math.PI * t * k / n);
        }
        outreal[k] = sumreal;
        outimag[k] = sumimag;
    }
 

How to loop over row for each row.....??

Many thanks.....

I guess, you can use the the TableRow to Loop Start which provides one row at the time and then either the Java Snippet, Math Formular or R node to do the computation?

What's wrong with chunk loop start ?

simon