linear algebra - Creating a Breeze DenseMatrix using an existing List of Lists in Scala -
I have
list [list [int]] = list (list (1, 2, 3, 0, 0, 0, 0, 0, 0), list (0, 0, 0, 1, 2, 3, 0, 0, 0), list (0, 0, 0, 0, 0, 1, 2, 3)) And I want to create a matrix / dense matrix with 3 rows and 9 columns so that I can do some linear algebra operations on it.
This is not yet great syntax for I actually ran in today, so I probably We will add better support soon. Meanwhile, Densmatics (array 1, ARR2, array 3) works. Therefore:
Val listoffithstats: list [list [int]] = ??? Danes Matrix (listofflim.map (_toure): _ *) Not the most beautiful, but if you open the ticket, I'll add better support.
Comments
Post a Comment