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