I have found a nice Java library for linear algebra, named JAMA
In Java, I can use such library by writing:
double[N][M] mat;
for (int r = 0; r < N; r++)
for (int c = 0; c < M; c++)
mat[r][c] = ...;
Matrix A = new Matrix(mat);
I would like to use the same library inside a Scala program.
I need to use the double[][]
data type, in order to pass it to the Matrix
constructor. How can I express such data type in Scala?
Thank you