uncomplicate

2018-03-04T01:55:03.000022Z

@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

Espen 2018-03-04T06:37:21.000002Z

@blueberry Thanks! That was it.

Espen 2018-03-04T07:10:54.000005Z

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?

Espen 2018-03-04T07:30:43.000008Z

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.

2018-03-04T09:28:09.000020Z

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

2018-03-04T09:28:30.000072Z

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

Espen 2018-03-04T10:00:58.000042Z

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.

2018-03-04T10:27:16.000067Z

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

Espen 2018-03-04T10:32:23.000049Z

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

2018-03-04T10:35:17.000112Z

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

Espen 2018-03-04T10:38:54.000016Z

Thank you, that made it work

whilo 2018-03-04T15:43:18.000120Z

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

Espen 2018-03-04T19:44:00.000036Z

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