I think 1.8.0-alpha4 addresses this issue? Can you verify?
On Wednesday, July 29, 2015 at 8:23:16 PM UTC-5, Mikera wrote:
>
> Hi Alex,
>
> 1.8.0-alpha3 is breaking core.matrix at the moment.
>
> Root cause appears to be related to how protocols are being handled when
> used with Java arrays:
>
> e.g. for the protocol implementation:
> (extend-protocol mp/PImplementation
> (Class/forName "[Ljava.lang.Object;")
> (implementation-key [m] :object-array)
> (meta-info [m]
> {:doc "Clojure.core.matrix implementation for Java Object arrays"})
> (new-vector [m length] (construct-object-vector (long length)))
> (new-matrix [m rows columns]
> (let [columns (long columns)
> m (object-array rows)]
> (dotimes [i rows]
> (aset m i (construct-object-vector columns)))
> m))
> (new-matrix-nd [m shape]
> (construct-nd shape))
> (construct-matrix [m data]
> (construct-object-array data))
> (supports-dimensionality? [m dims]
> (>= dims 1)))
>
> When called as:
> (clojure.core.matrix.protocols/construct-matrix (object-array 1) [1])
>
> Gives exception:
> VerifyError (class: clojure/core/matrix$eval10586, method: invokeStatic
> signature: ()Ljava/lang/Object;) Incompatible object argument for function
> call java.lang.Class.getDeclaredConstructors0 (:-2)
>
>>
>>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.