Skip to content

Commit 38bd014

Browse files
committed
huge update to Math library, including removing arrays and internal-random.
1 parent 399651c commit 38bd014

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/provisdom/apache_math/apache_matrix.clj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
(:require
1919
[clojure.spec.alpha :as s]
2020
[clojure.spec.gen.alpha :as gen]
21-
[provisdom.math.arrays :as ar]
2221
[provisdom.math.core :as m]
2322
[provisdom.math.matrix :as mx]
2423
[provisdom.math.random :as random]
@@ -296,7 +295,7 @@
296295
[m]
297296
(if (mx/empty-matrix? m)
298297
(Array2DRowRealMatrix.)
299-
(Array2DRowRealMatrix. ^"[[D" (ar/array2D :double m))))
298+
(Array2DRowRealMatrix. ^"[[D" (into-array (map #(into-array Double/TYPE %) m)))))
300299

301300
(s/fdef ->apache-matrix
302301
:args (s/cat :m ::mx/matrix)

0 commit comments

Comments
 (0)