This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-14
Channels
- # announcements (1)
- # beginners (13)
- # calva (2)
- # cider (43)
- # cljdoc (11)
- # clojure (16)
- # clojure-spec (10)
- # clojure-uk (6)
- # clojurescript (7)
- # code-reviews (3)
- # core-matrix (1)
- # datascript (4)
- # datomic (7)
- # devcards (4)
- # figwheel-main (12)
- # fulcro (27)
- # hoplon (1)
- # lein-figwheel (1)
- # luminus (1)
- # nrepl (23)
- # off-topic (4)
- # planck (1)
- # re-frame (8)
- # reagent (7)
- # shadow-cljs (61)
- # spacemacs (7)
- # tools-deps (19)
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]] `