convert setcell1d method from Javascript to Java

Dec 20, 2009 at 9:52am

convert setcell1d method from Javascript to Java

Hello!
I am porting some js code to java but i am finding a difficulty to solve this:

matrix1.setcell1d(x,n_array[0],n_array[1],n_array[2]);

how shall i convert this line of js code into java?
any suggestions?
thank you!
Emmanuel

#47312
Jan 13, 2010 at 9:45pm

matrix1.setcell1d(x, n_array); // where n_array is int[] float[] or double[]
(but probably you’ve figured it by now)

btw,
I’ve been using setcell a bit at first, but realized that it’s actully quite slow. If you wanna manipulate large amounts of data it’s advisable to use the copy comands supplied by the JitterMatrix object. i.e.
copyArrayToMatrix, copyArrayToVector and copyArrayToVectorPlanar etc..

Marcus.

#170239
Jan 13, 2010 at 10:45pm

Nice!
Welcome to the Forum Marcus, nice to see you around
Emmanuel

#170240

You must be logged in to reply to this topic.