A
Axel Etzold
Dear all,
I am trying to use a Java class in JRuby from an external Java
library. This runs all very nicely, yet at some point,
I have to define a matrix. In the Java library, this is
supposed to be done using this syntax:
double[][] a = { { 1.1, 1.2, 1.3, 1.4 }, { 2.1, 2.2, 2.3, 2.4 }, { 3.1, 3.2, 3.3, 3.4 } };
There does not seem to be another way of populating a matrix, however
using curly braces in JRuby mistakes "a" for a Hash.
Is there a workaround for this problem ?
Thank you very much !
Best regards,
Axel
I am trying to use a Java class in JRuby from an external Java
library. This runs all very nicely, yet at some point,
I have to define a matrix. In the Java library, this is
supposed to be done using this syntax:
double[][] a = { { 1.1, 1.2, 1.3, 1.4 }, { 2.1, 2.2, 2.3, 2.4 }, { 3.1, 3.2, 3.3, 3.4 } };
There does not seem to be another way of populating a matrix, however
using curly braces in JRuby mistakes "a" for a Hash.
Is there a workaround for this problem ?
Thank you very much !
Best regards,
Axel