Description
@Override public double maxValue() { double result = Double.MIN_VALUE; for (int i = 0; i < size(); i++) { result = Math.max(result, getQuick(i)); } return result; }
Should be:
@Override public double maxValue() { double result = 0; for (int i = 0; i < size(); i++) { result = Math.max(result, Math.abs(getQuick(i))); } return result; }
Right? MaxValue should be returning the max of the absolute value, not the real max, right? And the maxValue of the zero vector is 0, not MIN_VALUE, yes?