In attempting to come up with core.matrix indexing idioms analogous (or equivalent) to various examples from something like numpy, I came across
index
, index-seq
and company. But I can't seem to find how these are supposed to be used - select
and company do not seem to use them, nor do slice
, submatrix
, etc. Any information on this? Thanks in advance.Another question, with vector 'index args', why does select not perform typical integer indexing? For example, with (def a (m/matrix [[1,2], [3, 4], [5, 6]]))
why doesn't (select a [0 1 2] [0 1 0])
return [1.0,4.0,5.0]
instead of [[1.0,2.0,1.0],[3.0,4.0,3.0],[5.0,6.0,5.0]]
. I don't really understand the point behind the latter.