val v = DenseVector(1d, 2d, 3d)
val filteredV = v(v :> 2d) //works fine
val d = DenseMatrix(1d,2d,3d)
val filteredD = d(d(::,0) :>2d,::) //compilation error
The use case here is to filter matrix by some column. Currently, first I use findAll on a particular column and then I filter matrix like this(see below), but the above would be more compact.
val idx = d.filterAll(x => x>2)
d(idx,::)
Ideally I would like to filter matrix by row like this:
m.filterByRow(row => ....)
also getting matrix iterator with index like m.mapPair((index,row) => ....) would be useful