uncomplicate

2025-01-07T13:58:30.991729Z

Hello everyone. Trying to upgrade from 0.46 to 0.50, using Openjdk23 on windows. I have a weird bug, most things work but the following fails, anyone experienced this? Thanks!

(def x (uncomplicate.neanderthal.native/dgd 20 (repeat 1)))
=> #'jasmine.core/x
(uncomplicate.neanderthal.native/dge 20 20 x)
Execution error (IllegalArgumentException) at uncomplicate.neanderthal.core/ge (core.clj:265).
Multiple methods in multimethod 'transfer!' match dispatch value: [uncomplicate.neanderthal.internal.cpp.structures.RealDiagonalMatrix uncomplicate.neanderthal.internal.cpp.structures.RealGEMatrix] -> [uncomplicate.neanderthal.internal.cpp.structures.RealDiagonalMatrix uncomplicate.neanderthal.internal.api.Matrix] and [uncomplicate.neanderthal.internal.api.RealNativeMatrix uncomplicate.neanderthal.internal.api.RealNativeMatrix], and neither is preferred
`

2025-01-08T13:13:42.730059Z

Can you please try it with 0.50.1, and first use example/hello-world project?

2025-01-08T14:45:41.562239Z

Same, also tested 0.49, and jdk 17 for comparison

2025-01-08T22:46:02.847629Z

Just to confirm what you get. You've started lein repl in the terminal of the hello-world app, went to the native namespace, executed the code, and it threw an error?

2025-01-09T10:03:27.012039Z

Yes exactly. It’s weird because most of my existing code works it’s this bit (creating a real matrix off a diagonal matrix).

2025-01-09T13:10:41.156159Z

Can you please open an issue at GitHub, so I look at it later? In the meantime, do you really want to create a diagonal matrix from a general matrix? What elements do you expect in it?

2025-01-09T13:30:31.176099Z

Will do, thank you. I’m creating a general from a diagonal. But it all works if I create a diagonal matrix in raw Clojure before feeding it to dge so will do that for now