dividing function over entire list
hi there,
is it possible to apply one function say divide or multiply over an entire list?
e.g. I have a list of 48 integers (coming from a jit.spill) , I want to divide every element in the list by 10. Do I have to unpack, divide each integer by 10, output as a float and repack? Or can apply one division object over the entire list, i.e. all 48 lit elements?
any help appreciated
thanks
drew
use vexpr
ie [vexpr $f1/10.] or [vexpr $i1/10] or [vexpr int($f1/10.)] or [vexpr int(($f1/10.)+0.5)]
depending on what you want
thanks