Is it possible to use broadcasting in Breeze CSCMatrix objects?
On a DenseMatrix m
, broadcasting works like the following:
sum(m(::, *)
However, the same operation on a CSCMatrix m
yields this error:
scala> sum(m(0 to m.rows - 1, *))
<console>:15: error: could not find implicit value for parameter canSlice: breeze.linalg.support.CanSlice2[breeze.linalg.CSCMatrix[Int],scala.collection.immutable.Range.Inclusive,breeze.linalg.*.type,Result]
Slicing and broadcasting haven't been fleshed out for CSCMatrix yet, sorry.