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<Entry> iterator() ...

My solution: 
1. make class Entry public
2. make class RealVector implement Iterable<RealVector<Entry>>

so one can do this:

for (RealVector.Entry e : v) {
  if (Double.isNaN(e.getValue()) || 
      Double.isInfinite(e.getValue())) {
    throw new RuntimeException("roots: inputs must not contain Inf or
NaN");
  }
}

JIRA + diff???

Arne



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to