No you're not managing your libraries quite right...If you want to use
"use", which is generally frowned upon, then you don't need the alias.
(use '[clojure.core.matrix])
I would suggest to use 'require' instead though, which takes an alias
(require '(clojure.core.matrix :as mat))
(require '(incanter core charts pdf :as stat))
now in your code whenever you want use a function from core.matrix you
use the alias => (mat/esum .. ... ... ..)
the same for incanter. Use the alias and the function name.
hope that helps,
Jim
On 29/10/13 20:23, P Martin wrote:
Hello,
I am trying to use incanter to plot the results from my ode solving
routines. I use vectorz-clj to maintain the matrices and then want to
use incanter to display. When I go to use incanter, I get the
following error:
(use '(incanter core charts pdf))
IllegalStateException tan already refers to: #'clojure.core.matrix/tan
in namespace: opttranspower.support-test
clojure.lang.Namespace.warnOrFailOnReplace (Namespace.java:88)
Am I not managing my library references correctly? I load vectors-clj
with the following:
(use '[clojure.core.matrix :as mat])
(set-current-implementation :vectorz)
Thanks for your help!
Patrick
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient
with your first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.