We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 399651c commit 38bd014Copy full SHA for 38bd014
1 file changed
src/provisdom/apache_math/apache_matrix.clj
@@ -18,7 +18,6 @@
18
(:require
19
[clojure.spec.alpha :as s]
20
[clojure.spec.gen.alpha :as gen]
21
- [provisdom.math.arrays :as ar]
22
[provisdom.math.core :as m]
23
[provisdom.math.matrix :as mx]
24
[provisdom.math.random :as random]
@@ -296,7 +295,7 @@
296
295
[m]
297
(if (mx/empty-matrix? m)
298
(Array2DRowRealMatrix.)
299
- (Array2DRowRealMatrix. ^"[[D" (ar/array2D :double m))))
+ (Array2DRowRealMatrix. ^"[[D" (into-array (map #(into-array Double/TYPE %) m)))))
300
301
(s/fdef ->apache-matrix
302
:args (s/cat :m ::mx/matrix)
0 commit comments