core-matrix

intended for specific discussion around core.matrix (usage and development) For general data work check out #data-science
2017-05-29T02:38:56.298849Z

I would use something like:

2017-05-29T02:38:58.299017Z

(let [m [[1 2] [3 4]] max (emax m)] (filter #(= max (apply mget m %)) (index-seq m)))

2017-05-29T02:39:38.302598Z

Would be more efficient to do this with something like ereduce-indexed but we haven't implemented that yet 🙂

octahedrion 2017-05-29T05:09:00.099610Z

yeh I'm using index-seq but that's linear & I was hoping for a logarithmic solution - like, if the matrix were stored as a tree

octahedrion 2017-05-29T05:35:36.249938Z

your fn is shorter than mine though so I'll use it 🙂

octahedrion 2017-05-29T05:39:15.270508Z

i was doing the reduce - though interestingly according to criterium they're almost exactly the same