convert setcell1d method from Javascript to Java

Dec 20, 2009 at 9:52am

convert setcell1d method from Javascript to Java

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


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

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)

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..


Jan 13, 2010 at 10:45pm

Welcome to the Forum Marcus, nice to see you around


You must be logged in to reply to this topic.