@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.
BTW, there is a double-fn in uncomplicate.commons.core that can produce a primitive wrapper of : (double-fn )
formatting: `(double-fn *)
messed formatting again... but I guess it's parseable 🙂
🙂 Cool thanks for your help