Closed afwlehmann closed 12 years ago
This isn't as bad a problem as it looks. What's actually happening is that the slice isn't returning a shaped vector - and so it isn't using a shaped toString (either a VectorRow or VectorCol implementation). It's using the default Tensor toString, which prints out all elements as "%key %value" - i.e. 0 and 1 are the indexes (in the slice) of the elements you asked it to pull out.
Fixed as of ec4f4318eb
There might be a small glitch concerning Matrix's or Tensor2's apply method:
Up to this place, everything works just fine. But then
I would have expected a view of the first elements of
foo
's second row. Furthermore:It might as well be that this is really two issues, one between my ears and the other allowing invalid array indices :)