Re: [math] Java 8 RealVector Functional Design

2016-01-05 Thread Ole Ersoy
Hi, This is part 2 to the below. So initially I was thinking about having a Vector with map, reduce, etc. operations on it. The map function would handle the mapping of two vectors to a third (Actually just mapping one vector onto another). The reduce function would reduce either the vector

[math] Java 8 RealVector Functional Design

2016-01-05 Thread Ole Ersoy
Hi, I'm attempting a more minimalistic array vector design and just thought I'd float a partial API to see what you think. The below methods are both 'mapToSelf' by default. If the user wants a new vector, she should first clone the vector and then call the map method (vector.clone().map(...