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
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.
Nice!
Welcome to the Forum Marcus, nice to see you around
Emmanuel