Skip to content

Commit

Permalink
Test update for vectorz-clj
Browse files Browse the repository at this point in the history
  • Loading branch information
mikera committed Aug 11, 2019
1 parent 9f701e4 commit 017a56f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/clojure/clojure/core/matrix/test_vectorz.clj
Expand Up @@ -59,6 +59,11 @@
(set-inner-product! v [[2 0] [0 3]] [10 20] 10.0)
(is (equals [200 600] v))))

(deftest test-mmul!
(let [v (array :vectorz [[2 0] [0 3]])]
(mmul! v v)
(is (equals [[4 0] [0 9]] v))))

(deftest test-mutable
(is (vectorz? (mutable :vectorz [1 2 3])))
(is (not (vectorz? (mutable [1 2 3]))))
Expand Down

0 comments on commit 017a56f

Please sign in to comment.