Re: [math] RealVector Fluid API vs. Java 8 Arrays.setAll

2016-01-03 Thread Ole Ersoy
On 01/03/2016 08:41 PM, Gilles wrote: On Sun, 3 Jan 2016 19:41:46 -0600, Ole Ersoy wrote: Hi, RealVector supports the following type of fluid API: |RealVectorresult =v.mapAddToSelf(3.4).mapToSelf(newTan()).mapToSelf(newPower(2.3)); IIUC each time we call v.mapXXX an iteration happens, so wit

Re: [math] RealVector Fluid API vs. Java 8 Arrays.setAll

2016-01-03 Thread Gilles
On Sun, 3 Jan 2016 19:41:46 -0600, Ole Ersoy wrote: Hi, RealVector supports the following type of fluid API: |RealVectorresult =v.mapAddToSelf(3.4).mapToSelf(newTan()).mapToSelf(newPower(2.3)); IIUC each time we call v.mapXXX an iteration happens, so with the above expression we loop 3 times. W

[math] RealVector Fluid API vs. Java 8 Arrays.setAll

2016-01-03 Thread Ole Ersoy
Hi, RealVector supports the following type of fluid API: |RealVectorresult =v.mapAddToSelf(3.4).mapToSelf(newTan()).mapToSelf(newPower(2.3)); IIUC each time we call v.mapXXX an iteration happens, so with the above expression we loop 3 times. With Java 8 Arrays.setAll we can do the same thing

Re: [math] Matrix parallel operations

2016-01-03 Thread Ole Ersoy
[...] I am curious to see how this compares to simple for-loops which I can imagine help the JIT compiler to do loop unrolling and to make use of instruction-level parallelism. Otmar, Just read another article that evaluated some of Angelika Langers results. http://blog.codefx.org/java/stream-p

Re: [math] Matrix parallel operations

2016-01-03 Thread Ole Ersoy
On 01/03/2016 02:06 AM, Otmar Ertl wrote: Am 03.01.2016 7:49 vorm. schrieb "Ole Ersoy" : Hi, I ran another test using a single parallel loop for array based matrix vector multiplication. Throughput almost tripled (Test pasted at bottom): # Run complete. Total time: 00:13:24 Benchmark

Re: [math] Matrix parallel operations

2016-01-03 Thread Otmar Ertl
Am 03.01.2016 7:49 vorm. schrieb "Ole Ersoy" : > > Hi, > > I ran another test using a single parallel loop for array based matrix vector multiplication. Throughput almost tripled (Test pasted at bottom): > > # Run complete. Total time: 00:13:24 > > > Benchmark