This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-15
Channels
- # admin-announcements (25)
- # beginners (21)
- # boot (487)
- # cider (8)
- # clara (2)
- # cljsrn (35)
- # clojure (44)
- # clojure-austin (6)
- # clojure-russia (211)
- # clojure-uk (25)
- # clojurescript (225)
- # core-matrix (1)
- # data-science (3)
- # datomic (23)
- # events (1)
- # hoplon (9)
- # immutant (14)
- # jobs (1)
- # jobs-discuss (5)
- # ldnclj (3)
- # lein-figwheel (2)
- # off-topic (2)
- # om (65)
- # onyx (65)
- # parinfer (3)
- # pedestal (4)
- # proton (1)
- # protorepl (1)
- # re-frame (16)
- # reagent (3)
- # ring-swagger (1)
- # specter (11)
- # untangled (1)
- # yada (8)
Maybe an obvious question, but first time I’ve tried this in core.matrix
and I’m finding it a bit tough to locate what I’m looking for. Is there a way to do the equivalent of [index arrays](http://docs.scipy.org/doc/numpy-1.10.1/user/basics.indexing.html#index-arrays) in numpy?
>>> mat
array([[1, 2, 3],
[4, 5, 6],
[7, 8, 9]])
>>> mat[[2,1,0]]
array([[7, 8, 9],
[4, 5, 6],
[1, 2, 3]])
>>> mat[[1,1,1,1,1]]
array([[4, 5, 6],
[4, 5, 6],
[4, 5, 6],
[4, 5, 6],
[4, 5, 6]])