Skip to content

Commit

Permalink
update to latest core.matrix, fix issue with seq-of-vectors construction
Browse files Browse the repository at this point in the history
  • Loading branch information
mikera committed Aug 8, 2014
1 parent d0cbcd7 commit 84c9b5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project.clj
Expand Up @@ -9,7 +9,7 @@
:dependencies [[org.clojure/clojure "1.6.0"]
[slingshot "0.10.3"]
[org.jblas/jblas "1.2.3"]
[net.mikera/core.matrix "0.27.1"]]
[net.mikera/core.matrix "0.28.0"]]

:profiles {:dev {:dependencies [[criterium/criterium "0.4.3"]
[expectations "1.4.56"]]}})
2 changes: 1 addition & 1 deletion src/clatrix/core.clj
Expand Up @@ -367,7 +367,7 @@
(if (number? (first seq-of-seqs))
(matrix (DoubleMatrix. (double-array (clojure.core/map double seq-of-seqs)))
meta-args)
(let [lengths (clojure.core/map count seq-of-seqs)
(let [lengths (clojure.core/map m/slice-count seq-of-seqs)
flen (first lengths)]
(cond
(or (= (count lengths) 0) (some zero? lengths)) (matrix (DoubleMatrix. 0 0) meta-args)
Expand Down

0 comments on commit 84c9b5a

Please sign in to comment.