Yeah, confirmed this is a bug in vectorz-clj. Indexing error meant that the operator was getting applied to the first row twice, instead of once to each row.
There is a fix and regression tests in the develop branch already, will be fixed in next release (hopefully today if I have time) On Friday, 19 February 2016 08:11:17 UTC+8, Sunil Nandihalli wrote: > > Hi Everybody > There seems to be a problem with core.matrix/emap implementation for > vectorz implementation > > sunil@peacock:~/work/wnmf/clj/wnmf$ lein repl > Clojure 1.8.0 > wnmf.core=> (def t (m/array [[10] [20]])) > #'wnmf.core/t > wnmf.core=> (m/pm t) > [[10.000] > [20.000]] > nil > wnmf.core=> (m/pm (m/emap / t 10)) > [[ 0.100] > [20.000]] > nil > wnmf.core=> > > can somebody please clarify this? > Thanks, > Sunil. > -- 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/d/optout.