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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -