core-matrix

intended for specific discussion around core.matrix (usage and development) For general data work check out #data-science
2018-10-14T05:20:10.000100Z

I am new to core.matrix and get surprising results with vectorz. In the code below, I am trying to assign a row to matrix M, but it does not get assigned…what am I missing? Thanks for any advice.. `(require ’[clojure.core.matrix :as mat]) ;;=>nil (mat/set-current-implementation :vectorz) ;;=> :vectorz (def M (mat/new-matrix 2 2)) ;;=> #’user/M (mat/assign! (mat/get-row M 0) (mat/array [1 3])) ;;=> #vectorz/vector [1.0,3.0] M ;; => #vectorz/matrix [[0.0,0.0], ;; =>[0.0,0.0]] `