Example usage for org.apache.commons.math3.linear CholeskyDecomposition DEFAULT_RELATIVE_SYMMETRY_THRESHOLD

List of usage examples for org.apache.commons.math3.linear CholeskyDecomposition DEFAULT_RELATIVE_SYMMETRY_THRESHOLD

Introduction

In this page you can find the example usage for org.apache.commons.math3.linear CholeskyDecomposition DEFAULT_RELATIVE_SYMMETRY_THRESHOLD.

Prototype

double DEFAULT_RELATIVE_SYMMETRY_THRESHOLD

To view the source code for org.apache.commons.math3.linear CholeskyDecomposition DEFAULT_RELATIVE_SYMMETRY_THRESHOLD.

Click Source Link

Document

Default threshold above which off-diagonal elements are considered too different and matrix not symmetric.

Usage

From source file:edu.oregonstate.eecs.mcplan.ml.MatrixAlgorithms.java

public static boolean isPositiveDefinite(final RealMatrix M, final double absolute_positivity_threshold) {
    try {//www . j  a  v  a  2  s .com
        final CholeskyDecomposition chol = new CholeskyDecomposition(M,
                CholeskyDecomposition.DEFAULT_RELATIVE_SYMMETRY_THRESHOLD, absolute_positivity_threshold);
        return true;
    } catch (final NonPositiveDefiniteMatrixException ex) {
        return false;
    }
}