parallel map and dot product

Norm Rubin nrubin at nvidia.com
Thu Apr 4 12:00:41 PDT 2013


Thanks I’ll move it over


From: Till Schneidereit [mailto:tschneidereit at gmail.com]
Sent: Thursday, April 04, 2013 2:58 PM
To: Norm Rubin
Cc: es-discuss at mozilla.org
Subject: Re: parallel map and dot product

Hi Norm,
the people behind ParallelArray mostly aren't on es-discuss, so you'll probably have more luck here:
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rivertrail
hth,
till

On Thu, Apr 4, 2013 at 8:31 PM, Norm Rubin <nrubin at nvidia.com<mailto:nrubin at nvidia.com>> wrote:
I’ve started to read through the parallel JavaScript  proposal  and have a novice question
How would you write a dot product
Given:

P1 = parallelArray(1,2,3)
P2 = ParallelArray(4,5,6)

We want to compute
1*4 + 2*5 + 3*6

As far as I can tell, you need a reduce to do the sums, so you first need to construct
 P12 = ParallelArray(1*4, 2*5, 3*6)

Is there a way to generate this using map?


________________________________
This email message is for the sole use of the intended recipient(s) and may contain confidential information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
________________________________

_______________________________________________
es-discuss mailing list
es-discuss at mozilla.org<mailto:es-discuss at mozilla.org>
https://mail.mozilla.org/listinfo/es-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130404/144b63f3/attachment.html>


More information about the es-discuss mailing list