This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-18
Channels
- # bangalore-clj (1)
- # beginners (36)
- # boot (119)
- # braid-chat (16)
- # cider (14)
- # cljs-dev (34)
- # cljsrn (7)
- # clojars (9)
- # clojure (91)
- # clojure-austin (1)
- # clojure-bangladesh (1)
- # clojure-dusseldorf (5)
- # clojure-israel (1)
- # clojure-russia (3)
- # clojure-spec (6)
- # clojure-uk (7)
- # clojurescript (11)
- # community-development (1)
- # core-async (5)
- # cursive (6)
- # datomic (11)
- # dirac (12)
- # funcool (24)
- # leiningen (5)
- # luminus (5)
- # off-topic (2)
- # om (69)
- # om-next (16)
- # overtone (4)
- # perun (19)
- # re-frame (23)
- # reagent (38)
- # specter (7)
- # uncomplicate (9)
- # yada (4)
@adebesin What exactly do you consider "multiplying" two vectors? There is the dot product, http://neanderthal.uncomplicate.org/codox/uncomplicate.neanderthal.core.html#var-dot
@blueberry The operations in the above code can be interpreted as (map - [1 2] [5 6])
and (map + [1 2] [5 6])
is there an operation that would resemble executing (map * [1 2] [5 6])
Currently I use (fmap (fn ^double [^double x ^double y] (* x y)) ... )
to get a RealBlockVector back
There is no standard operation for that. That's why fmap and fmap! are there. On the other hand, if that is not your final result, but you are using it as a building block for some algorithm, maybe you can use a level 2 or level 3 operation and do not need ellementwise x * y at all.