Forums > Java

convert setcell1d method from Javascript to Java


efe
December 20, 2009 | 9:52 am

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


January 13, 2010 | 9:45 pm

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.



efe
January 13, 2010 | 10:45 pm

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


Viewing 3 posts - 1 through 3 (of 3 total)