mikera / vectorz-clj

Fast matrix and vector maths library for Clojure - as a core.matrix implementation
203 stars 19 forks source link

lt and friends return bogus results #58

Closed nathell closed 8 years ago

nathell commented 8 years ago

I'm getting the following:

> (matrix/lt (matrix/array [1 2 -1 2]) 0.0)
#vectorz/vector [0.0,0.0,0.0,0.0] ;; I'd expect the third element to be 1

> (matrix/lt [1 2 -1 2] 0)
[0 0 1 0] ;; this is okay

> (matrix/gt (matrix/array [1 2 -1 2]) 0.0)
#vectorz/vector [1.0,1.0,1.0,1.0] ;; at least it's consistent with gt...

What gives? I'm on vectorz-clj 0.44.1.