[math] RealVector with visibility protected|public conflict

2013-04-09 Thread Arne Plöse
Hi, in class org.apache.commons.math3.linear.RealVector there is the embedded class Entry which is protected, but it is exposed by method public Iterator iterator() ... My solution: 1. make class Entry public 2. make class RealVector implement Iterable> so one can do this: for (RealVector.Ent

[math] extend FieldElement

2011-05-09 Thread Arne Plöse
Hi, here are some proposals for enhancing FieldElement: add some shorthand "operators" for double i.e. add(double rhs) ... and so on. add: T negate(); T sqrt(); T pow(T x); T pow(double x); the FieldVector interface should be enhanced with this methods as well. Yes, I know this has an impact o