Search code examples
scala-breeze

Using scala breeze with complex datatypes


What is the best way to build a dense matrix within Breeze that is made up of object with different data types?

For example how would

case class X ( a1:Int, b2:Long, c3:Double, d4:Double)

get mapped into a dense matrix?

Is there an equivalent of Numpy's dtypes within Breeze?

Ultimately I have many millions of records I'm trying to process and am looking to perform arithmetic functions on the b2, c3 and d4 columns based on slices on the a1 column in the X class.


Solution

  • Breeze doesn't support that kind of functionality yet. It's desired, but there's nothing at this time.