Remove some restrictions on matrix constructor.

This commit is contained in:
Andrey Antukh 2016-01-19 22:00:44 +02:00
parent b00e2118bc
commit 6a3372f22f

View file

@ -26,9 +26,7 @@
of elements of the collection." of elements of the collection."
[coll] [coll]
{:pre [(coll? coll) {:pre [(coll? coll)
(coll? (first coll)) (coll? (first coll))]}
(= (count coll)
(count (first coll)))]}
(Matrix. (clj->js coll))) (Matrix. (clj->js coll)))
(defn multiply (defn multiply