Hi,
To be more specific, instead of A, B, C, D I have numerical IDs.
- Code: Select all
12243251 1299876 0.5
32553218 8763421 0.75
98664321 5643287 0.2
With this I get an ArrayIndexOutOfBoundsException
- Code: Select all
Row: 0
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at org.ujmp.core.stringmatrix.impl.SimpleDenseStringMatrix2D.getString(SimpleDenseStringMatrix2D.java:79)
at org.ujmp.core.stringmatrix.stub.AbstractDenseStringMatrix2D.getString(AbstractDenseStringMatrix2D.java:42)
at org.ujmp.core.stringmatrix.stub.AbstractStringMatrix.getAsString(AbstractStringMatrix.java:58)
at org.ujmp.core.stringmatrix.stub.AbstractStringMatrix.getAsDouble(AbstractStringMatrix.java:48)
at org.ujmp.core.doublematrix.calculation.general.misc.Dense2Sparse.calc(Dense2Sparse.java:44)
at org.ujmp.core.MatrixFactory.sparse(MatrixFactory.java:681)
at Tab2NxNMatrix.transform(Tab2NxNMatrix.java:33)
at Tab2NxNMatrix.main(Tab2NxNMatrix.java:27)
Also, how can I write to sparse matrix to a file (in a matrix form).
Thanks