Re: matrix data types

2013-07-10 Thread Mikera
Element types are dependent on the implementation. Some implementations support arbitrary (Object) data types - this includes the default implementation that supports Clojure persistent vectors, e.g. [1 nil :foo] is a valid vector. Mathematical operations on such vectors use standard functions

Re: matrix data types

2013-07-10 Thread Brian Craft
Trying to add vectorz, I'm getting this run-time error: java.lang.RuntimeException: Unable to find implementation: [:vectorz] It's in my project.clj. Is there some other magic I need to perform? On Wednesday, July 10, 2013 2:06:31 PM UTC-7, Brian Craft wrote: > > How are data types handled in c

matrix data types

2013-07-10 Thread Brian Craft
How are data types handled in core.matrix? I was surprised to see it returning rationals rather than floats. I don't see a way to control this in the api, e.g. like dtype in numpy. (element-type) is returning java.lang.Object for all inputs. Does this mean I'm creating arrays of clojure's wrapp