I have a txt file with several integer matrices with different dimensions that I want to parse into an hmatrix package representation, but I can't find any suitable functions. The text file contains the following form:
[single-value]
[single-row 1x10 matrix]
[16x16 square-matrix]
repeats unknowingly often
e.g.
9
1 2 3 ..
9 8 7 6 5 ...
.
.
4 3 2 1 0 ..
...
The closest thing I found was readMatrix
at:
but since there is no documentation and I'm fairly new to Haskell I have no idea how to use it.