Package org.apache.commons.math3.exception

Examples of org.apache.commons.math3.exception.MathUnsupportedOperationException


     * {@link #optimize(OptimizationData[]) optimize} method.
     */
    private void checkParameters() {
        if (getLowerBound() != null ||
            getUpperBound() != null) {
            throw new MathUnsupportedOperationException(LocalizedFormats.CONSTRAINT);
        }
    }
View Full Code Here


        if (simplex == null) {
            throw new NullArgumentException();
        }
        if (getLowerBound() != null ||
            getUpperBound() != null) {
            throw new MathUnsupportedOperationException(LocalizedFormats.CONSTRAINT);
        }
    }
View Full Code Here

     * {@link #optimize(OptimizationData[]) optimize} method.
     */
    private void checkParameters() {
        if (getLowerBound() != null ||
            getUpperBound() != null) {
            throw new MathUnsupportedOperationException(LocalizedFormats.CONSTRAINT);
        }
    }
View Full Code Here

     * symmetric or not positive definite.
     * @since 3.1
     */
    public RealMatrix getSquareRoot() {
        if (!isSymmetric) {
            throw new MathUnsupportedOperationException();
        }

        final double[] sqrtEigenValues = new double[realEigenvalues.length];
        for (int i = 0; i < realEigenvalues.length; i++) {
            final double eigen = realEigenvalues[i];
            if (eigen <= 0) {
                throw new MathUnsupportedOperationException();
            }
            sqrtEigenValues[i] = FastMath.sqrt(eigen);
        }
        final RealMatrix sqrtEigen = MatrixUtils.createRealDiagonalMatrix(sqrtEigenValues);
        final RealMatrix v = getV();
View Full Code Here

     * @throws MathUnsupportedOperationException if the decomposition resulted in
     * complex eigenvalues
     */
    public DecompositionSolver getSolver() {
        if (hasComplexEigenvalues()) {
            throw new MathUnsupportedOperationException();
        }
        return new Solver(realEigenvalues, imagEigenvalues, eigenvectors);
    }
View Full Code Here

    @Override
    public void setSubMatrix(final double[][] subMatrix,
                             final int row,
                             final int column)
        throws MathUnsupportedOperationException {
        throw new MathUnsupportedOperationException();
    }
View Full Code Here

    @Override
    public void setEntry(final int row, final int column, final double value)
        throws OutOfRangeException,
               MathUnsupportedOperationException {
        if (row != column) {
            throw new MathUnsupportedOperationException();
        }
        MatrixUtils.checkMatrixIndex(this, row, column);
        data[row] = value;
    }
View Full Code Here

                           final int column,
                           final double increment)
        throws OutOfRangeException,
               MathUnsupportedOperationException {
        if (row != column) {
            throw new MathUnsupportedOperationException();
        }
        MatrixUtils.checkMatrixIndex(this, row, column);
        data[row] += increment;
    }
View Full Code Here

                              final int column,
                              final double factor)
        throws OutOfRangeException,
               MathUnsupportedOperationException {
        if (row != column) {
            throw new MathUnsupportedOperationException();
        }
        MatrixUtils.checkMatrixIndex(this, row, column);
        data[row] *= factor;
    }
View Full Code Here

    /** {@inheritDoc} */
    @Override
    public double walkInRowOrder(final RealMatrixChangingVisitor visitor)
        throws MathUnsupportedOperationException {
        throw new MathUnsupportedOperationException();
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.math3.exception.MathUnsupportedOperationException

Copyright © 2018 www.massapicom. 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.