
Making columwise operations faster?

ysspatil
make/o/n=(1000,16) w1= gnoise(1) ,w2 = gnoise(1)
Each column of each wave refer to data from a single experiment, and the column index is a different iteration of the same experiment.
i.e. w1[][k] and w2[][k] refer to two outputs of a single experiment, where k indexes the iteration of the experiment.
I want to construct a wave as follows
duplicate/o w1 w3
w3[][]=w1[p][q]*w2[999-p][q]
Is there a way to make the construction of w3 faster?
Each column is independent, so can we use multiple cores or processes (or anything else) to speed up the construction of w3?
When executed on the command line using the same Windows machine with a quad core processor:
•test() 3180.63 •test_MT() 763.69
November 24, 2016 at 07:34 am - Permalink
On my machine
November 24, 2016 at 02:30 pm - Permalink
MatrixOP reverseCols
, i.e.•test()
1082.05
•test_MT()
492.495
•test_RV()
169.394
•test_RV2()
79.089
November 24, 2016 at 11:45 pm - Permalink