I am adding the following 2 methods in MathArrays. Please let me know if any one has concerns.(The math-1130-remove.patch and math-1130-replace.patch has te code for reference)
a) Replace a old val with new val in a double array i) public static double[] replaceInRange(final double[] values,final int from, final int to, final double oldValue, final double newValue) ; ii)public static double[] replace(final double[] values, final double oldValue, final double newValue) b) Remove a value from a doible array i) public static double[] removeInRange(final double[] values, final int from, final int to, final double item) ii)public static double[] remove(final double[] values, final double item) Basically i needed this feature from Math-1120 where handling of NaN required to remove NaNs. Even replacing of Nan is astrategy and hence the need for replace function Thanks Venkat --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org