Package org.apache.sis.internal.util

Examples of org.apache.sis.internal.util.DoubleDouble.clear()


         */
        final DoubleDouble dot = new DoubleDouble();
        final DoubleDouble sum = new DoubleDouble();
        for (int k=0,j=0; j<numRow; j++) {
            for (int i=0; i<numCol; i++) {
                sum.clear();
                double max = 0;
                int iB = i;       // Index of values in a single column of B.
                int iA = j * nc;  // Index of values in a single row of A.
                final int nextRow = iA + nc;
                while (iA < nextRow) {
View Full Code Here


                    iA++;         // Move to next column of A.
                    final double value = Math.abs(dot.value);
                    if (value > max) max = value;
                }
                if (Math.abs(sum.value) < Math.ulp(max) * ZERO_THRESHOLD) {
                    sum.clear(); // Sum is not significant according double arithmetic.
                }
                sum.storeTo(elements, k++, errorOffset);
            }
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.