commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ole Ersoy <ole.er...@gmail.com>
Subject [math] Should this throw a NO_DATA exception?
Date Sat, 09 Jan 2016 00:41:27 GMT
    public double getLInfNorm() {
         double norm = 0;
         Iterator<Entry> it = iterator();
         while (it.hasNext()) {
             final Entry e = it.next();
             norm = FastMath.max(norm, FastMath.abs(e.getValue()));
         }
         return norm;
     }

Cheers,
Ole

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


Mime
View raw message