Re: How to send double array[][] from Python to Java with JCC?

2013-01-21 Thread Alexey Ryabukhin
Here is a Java part: public double[][] getArrayPixels() { double array[][] = new double[nx][ny]; int k = 0; for(int j = 0; j < ny; j++) { for(int i = 0; i < nx; i++) array[i][j] = pixels[k++]; } return array; }

Re: How to send double array[][] from Python to Java with JCC?

2013-01-21 Thread Andi Vajda
On Mon, 21 Jan 2013, Alexey Ryabukhin wrote: I have a function in java code that returns double array[][]. In python I have this: JArray[, , , , ] Works fine. But when I put it back to java it shows error: self.putArrayPixels(self.getArrayPixels()) ijresize.InvalidArgsError: (, 'putArrayPixels

How to send double array[][] from Python to Java with JCC?

2013-01-21 Thread Alexey Ryabukhin
I have a function in java code that returns double array[][]. In python I have this: JArray[, , , , ] Works fine. But when I put it back to java it shows error: self.putArrayPixels(self.getArrayPixels()) ijresize.InvalidArgsError: (, 'putArrayPixels', JArray[, , , , ]) Is it possible somehow to