Fork me on GitHub
#uncomplicate
<
2018-03-04
>
blueberry01:03:03

@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

Espen06:03:21

@blueberry Thanks! That was it.

Espen07:03:54

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?

Espen07:03:43

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.

blueberry09:03:09

@espen302 see the printing.clj namespace. There you can set the printing preferences for neanderhtal.

blueberry09:03:30

pi is a constant, not a function. Therefore, pi instead of (pi).

Espen10:03:58

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.

blueberry10:03:16

@espen302 call (printer-settings! {:matrix-width 10 :matrix-height 10})

Espen10:03:23

Thanks 🙂 How do I include it in the namespace? I tried with "(:use [uncomplicate.neanderthal" "printing", and "internal/printing", without success.

blueberry10:03:17

(:require [uncomplicate.neanderthal.internal.printing :refer [printer-settings!])

Espen10:03:54

Thank you, that made it work

whilo15:03:18

@espen302 what kind of problems do you plan to work on numerically?

Espen19:03:00

@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.