[math] Should this throw a NO_DATA exception?

2016-01-08 Thread Ole Ersoy
public double getLInfNorm() { double norm = 0; Iterator it = iterator(); while (it.hasNext()) { final Entry e = it.next(); norm = FastMath.max(norm, FastMath.abs(e.getValue())); } return norm; } Cheers, Ole --

Re: [math] Should this throw a NO_DATA exception?

2016-01-08 Thread Gilles
Hi Ole. Maybe I don't understand the point of the question but I'm not sure that collecting here answers to implementation-level questions is going to lead us anywhere. There is a issue on the bug-tracking system that started to collect many of the various problems (specific and general) of data

Re: [math] Should this throw a NO_DATA exception?

2016-01-08 Thread Ole Ersoy
Hi Gilles, On 01/08/2016 07:37 PM, Gilles wrote: Hi Ole. Maybe I don't understand the point of the question but I'm not sure that collecting here answers to implementation-level questions is going to lead us anywhere. Well it could lead to an improved implementation :). There is a issue on