Examples of storeTo()


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

            if (!acc.isZero()) {
                for (int j=i; ++j < size;) {
                    final int t = j*size + i;
                    rat.setFrom(acc);
                    rat.inverseDivide(LU, t, errorLU);
                    rat.storeTo      (LU, t, errorLU);
                }
            }
        }
        /*
         * At this point, we are done computing LU.
View Full Code Here

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

            final int rowOffset = k*innerSize;          // Offset of row computed by current iteration.
            acc.setFrom(LU, k*size + k, errorLU);       // A diagonal element on the current row.
            for (int i=0; i<innerSize; i++) {           // Apply to all columns in the current row.
                rat.setFrom(acc);
                rat.inverseDivide(elements, rowOffset + i, errorOffset);
                rat.storeTo      (elements, rowOffset + i, errorOffset);
            }
            for (int j=0; j<k; j++) {
                final int upRowOffset = j*innerSize;    // Offset of a row before (locate upper) the current row.
                acc.setFrom(LU, j*size + k, errorLU);   // Same column than the diagonal element, but in the upper row.
                for (int i=0; i<innerSize; i++) {       // Apply to all columns in the upper row.
View Full Code Here

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

                for (int i=0; i<innerSize; i++) {       // Apply to all columns in the upper row.
                    rat.setFrom(elements, rowOffset + i, errorOffset);
                    rat.multiply(acc);
                    rat.subtract(elements, upRowOffset + i, errorOffset);
                    rat.negate();
                    rat.storeTo(elements, upRowOffset + i, errorOffset);
                }
            }
        }
        return result;
    }
View Full Code Here

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

            sum.sqrt();
            for (int j=0; j<numRow; j++) {
                final int k = j*numCol + i;
                dot.setFrom(sum);
                dot.inverseDivide(elt, k, errors);
                dot.storeTo(elt, k, errors);
            }
        }
        if (elt != elements) {
            System.arraycopy(elt, 0, elements, 0, elements.length);
        }
View Full Code Here

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

                    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.