@espen302 You need to export java.base module when you run on Java 9, as explained here https://dragan.rocks/articles/18/Neanderthal-018-CUDA9-Java9-Clojure19-update
@blueberry Thanks! That was it.
The system I am solving gives a 9x9 matrix. I am not able to see all of it in the REPL, it is truncated and only shows 4 values for each row and column. Same when I use (print). How can I display the whole matrix?
I am also having some trouble with using the (pi) constant in neandethal/math. Getting "ClassCastException java.base/java.lang.Double cannot be cast to clojure.lang.IFn". (Math/PI) works well though.
@espen302 see the printing.clj namespace. There you can set the printing preferences for neanderhtal.
pi is a constant, not a function. Therefore, pi
instead of (pi)
.
Thanks--I'm just learning clojure so I find that file a little hard to understand. I'll come back to it when I understand more basic clojure.
@espen302 call (printer-settings! {:matrix-width 10 :matrix-height 10})
Thanks š How do I include it in the namespace? I tried with "(:use [uncomplicate.neanderthal" "printing", and "internal/printing", without success.
(:require [uncomplicate.neanderthal.internal.printing :refer [printer-settings!])
Thank you, that made it work
@espen302 what kind of problems do you plan to work on numerically?
@whilo Iām an undergraduate engineering student so for now only very basic ones. I want to learn Clojure, and it is fun to explore what I learn in maths, physics and EE with programming.