Java 类org.apache.commons.math3.linear.NonSquareMatrixException 实例源码

项目:SME    文件:Weight.java   
/**
 * @param weight Weight matrix.
 * @throws NonSquareMatrixException if the argument is not
 * a square matrix.
 */
public Weight(RealMatrix weight) {
    if (weight.getColumnDimension() != weight.getRowDimension()) {
        throw new NonSquareMatrixException(weight.getColumnDimension(),
                                           weight.getRowDimension());
    }

    weightMatrix = weight.copy();
}
项目:SME    文件:Weight.java   
/**
 * @param weight Weight matrix.
 * @throws NonSquareMatrixException if the argument is not
 * a square matrix.
 */
public Weight(RealMatrix weight) {
    if (weight.getColumnDimension() != weight.getRowDimension()) {
        throw new NonSquareMatrixException(weight.getColumnDimension(),
                                           weight.getRowDimension());
    }

    weightMatrix = weight.copy();
}
项目:CARMA    文件:Weight.java   
/**
 * @param weight Weight matrix.
 * @throws NonSquareMatrixException if the argument is not
 * a square matrix.
 */
public Weight(RealMatrix weight) {
    if (weight.getColumnDimension() != weight.getRowDimension()) {
        throw new NonSquareMatrixException(weight.getColumnDimension(),
                                           weight.getRowDimension());
    }

    weightMatrix = weight.copy();
}
项目:CARMA    文件:Weight.java   
/**
 * @param weight Weight matrix.
 * @throws NonSquareMatrixException if the argument is not
 * a square matrix.
 */
public Weight(RealMatrix weight) {
    if (weight.getColumnDimension() != weight.getRowDimension()) {
        throw new NonSquareMatrixException(weight.getColumnDimension(),
                                           weight.getRowDimension());
    }

    weightMatrix = weight.copy();
}
项目:astor    文件:Weight.java   
/**
 * @param weight Weight matrix.
 * @throws NonSquareMatrixException if the argument is not
 * a square matrix.
 */
public Weight(RealMatrix weight) {
    if (weight.getColumnDimension() != weight.getRowDimension()) {
        throw new NonSquareMatrixException(weight.getColumnDimension(),
                                           weight.getRowDimension());
    }

    weightMatrix = weight.copy();
}
项目:astor    文件:Weight.java   
/**
 * @param weight Weight matrix.
 * @throws NonSquareMatrixException if the argument is not
 * a square matrix.
 */
public Weight(RealMatrix weight) {
    if (weight.getColumnDimension() != weight.getRowDimension()) {
        throw new NonSquareMatrixException(weight.getColumnDimension(),
                                           weight.getRowDimension());
    }

    weightMatrix = weight.copy();
}
项目:astor    文件:Weight.java   
/**
 * @param weight Weight matrix.
 * @throws NonSquareMatrixException if the argument is not
 * a square matrix.
 */
public Weight(RealMatrix weight) {
    if (weight.getColumnDimension() != weight.getRowDimension()) {
        throw new NonSquareMatrixException(weight.getColumnDimension(),
                                           weight.getRowDimension());
    }

    weightMatrix = weight.copy();
}
项目:astor    文件:Weight.java   
/**
 * @param weight Weight matrix.
 * @throws NonSquareMatrixException if the argument is not
 * a square matrix.
 */
public Weight(RealMatrix weight) {
    if (weight.getColumnDimension() != weight.getRowDimension()) {
        throw new NonSquareMatrixException(weight.getColumnDimension(),
                                           weight.getRowDimension());
    }

    weightMatrix = weight.copy();
}
项目:astor    文件:Weight.java   
/**
 * @param weight Weight matrix.
 * @throws NonSquareMatrixException if the argument is not
 * a square matrix.
 */
public Weight(RealMatrix weight) {
    if (weight.getColumnDimension() != weight.getRowDimension()) {
        throw new NonSquareMatrixException(weight.getColumnDimension(),
                                           weight.getRowDimension());
    }

    weightMatrix = weight.copy();
}
项目:astor    文件:Weight.java   
/**
 * @param weight Weight matrix.
 * @throws NonSquareMatrixException if the argument is not
 * a square matrix.
 */
public Weight(RealMatrix weight) {
    if (weight.getColumnDimension() != weight.getRowDimension()) {
        throw new NonSquareMatrixException(weight.getColumnDimension(),
                                           weight.getRowDimension());
    }

    weightMatrix = weight.copy();
}
项目:astor    文件:Weight.java   
/**
 * @param weight Weight matrix.
 * @throws NonSquareMatrixException if the argument is not
 * a square matrix.
 */
public Weight(RealMatrix weight) {
    if (weight.getColumnDimension() != weight.getRowDimension()) {
        throw new NonSquareMatrixException(weight.getColumnDimension(),
                                           weight.getRowDimension());
    }

    weightMatrix = weight.copy();
}
项目:astor    文件:Weight.java   
/**
 * @param weight Weight matrix.
 * @throws NonSquareMatrixException if the argument is not
 * a square matrix.
 */
public Weight(RealMatrix weight) {
    if (weight.getColumnDimension() != weight.getRowDimension()) {
        throw new NonSquareMatrixException(weight.getColumnDimension(),
                                           weight.getRowDimension());
    }

    weightMatrix = weight.copy();
}
项目:idylfin    文件:Weight.java   
/**
 * @param weight Weight matrix.
 * @throws NonSquareMatrixException if the argument is not
 * a square matrix.
 */
public Weight(RealMatrix weight) {
    if (weight.getColumnDimension() != weight.getRowDimension()) {
        throw new NonSquareMatrixException(weight.getColumnDimension(),
                                           weight.getRowDimension());
    }

    weightMatrix = weight.copy();
}
项目:idylfin    文件:Weight.java   
/**
 * @param weight Weight matrix.
 * @throws NonSquareMatrixException if the argument is not
 * a square matrix.
 */
public Weight(RealMatrix weight) {
    if (weight.getColumnDimension() != weight.getRowDimension()) {
        throw new NonSquareMatrixException(weight.getColumnDimension(),
                                           weight.getRowDimension());
    }

    weightMatrix = weight.copy();
}
项目:autoredistrict    文件:Weight.java   
/**
 * @param weight Weight matrix.
 * @throws NonSquareMatrixException if the argument is not
 * a square matrix.
 */
public Weight(RealMatrix weight) {
    if (weight.getColumnDimension() != weight.getRowDimension()) {
        throw new NonSquareMatrixException(weight.getColumnDimension(),
                                           weight.getRowDimension());
    }

    weightMatrix = weight.copy();
}
项目:autoredistrict    文件:Weight.java   
/**
 * @param weight Weight matrix.
 * @throws NonSquareMatrixException if the argument is not
 * a square matrix.
 */
public Weight(RealMatrix weight) {
    if (weight.getColumnDimension() != weight.getRowDimension()) {
        throw new NonSquareMatrixException(weight.getColumnDimension(),
                                           weight.getRowDimension());
    }

    weightMatrix = weight.copy();
}
项目:CRISIS    文件:InputOutputMatrix.java   
public double getTrace() throws NonSquareMatrixException {
   return matrix.getTrace();
}
项目:CRISIS    文件:InputOutputMatrix.java   
public RealMatrix power(int arg0) throws NotPositiveException, NonSquareMatrixException {
   return matrix.power(arg0);
}
项目:SME    文件:AbstractMultipleLinearRegression.java   
/**
 * Validates that the x data and covariance matrix have the same
 * number of rows and that the covariance matrix is square.
 *
 * @param x the [n,k] array representing the x sample
 * @param covariance the [n,n] array representing the covariance matrix
 * @throws DimensionMismatchException if the number of rows in x is not equal
 * to the number of rows in covariance
 * @throws NonSquareMatrixException if the covariance matrix is not square
 */
protected void validateCovarianceData(double[][] x, double[][] covariance) {
    if (x.length != covariance.length) {
        throw new DimensionMismatchException(x.length, covariance.length);
    }
    if (covariance.length > 0 && covariance.length != covariance[0].length) {
        throw new NonSquareMatrixException(covariance.length, covariance[0].length);
    }
}
项目:CARMA    文件:AbstractMultipleLinearRegression.java   
/**
 * Validates that the x data and covariance matrix have the same
 * number of rows and that the covariance matrix is square.
 *
 * @param x the [n,k] array representing the x sample
 * @param covariance the [n,n] array representing the covariance matrix
 * @throws DimensionMismatchException if the number of rows in x is not equal
 * to the number of rows in covariance
 * @throws NonSquareMatrixException if the covariance matrix is not square
 */
protected void validateCovarianceData(double[][] x, double[][] covariance) {
    if (x.length != covariance.length) {
        throw new DimensionMismatchException(x.length, covariance.length);
    }
    if (covariance.length > 0 && covariance.length != covariance[0].length) {
        throw new NonSquareMatrixException(covariance.length, covariance[0].length);
    }
}
项目:astor    文件:AbstractMultipleLinearRegression.java   
/**
 * Validates that the x data and covariance matrix have the same
 * number of rows and that the covariance matrix is square.
 *
 * @param x the [n,k] array representing the x sample
 * @param covariance the [n,n] array representing the covariance matrix
 * @throws DimensionMismatchException if the number of rows in x is not equal
 * to the number of rows in covariance
 * @throws NonSquareMatrixException if the covariance matrix is not square
 */
protected void validateCovarianceData(double[][] x, double[][] covariance) {
    if (x.length != covariance.length) {
        throw new DimensionMismatchException(x.length, covariance.length);
    }
    if (covariance.length > 0 && covariance.length != covariance[0].length) {
        throw new NonSquareMatrixException(covariance.length, covariance[0].length);
    }
}
项目:astor    文件:AbstractMultipleLinearRegression.java   
/**
 * Validates that the x data and covariance matrix have the same
 * number of rows and that the covariance matrix is square.
 *
 * @param x the [n,k] array representing the x sample
 * @param covariance the [n,n] array representing the covariance matrix
 * @throws DimensionMismatchException if the number of rows in x is not equal
 * to the number of rows in covariance
 * @throws NonSquareMatrixException if the covariance matrix is not square
 */
protected void validateCovarianceData(double[][] x, double[][] covariance) {
    if (x.length != covariance.length) {
        throw new DimensionMismatchException(x.length, covariance.length);
    }
    if (covariance.length > 0 && covariance.length != covariance[0].length) {
        throw new NonSquareMatrixException(covariance.length, covariance[0].length);
    }
}
项目:astor    文件:AbstractMultipleLinearRegression.java   
/**
 * Validates that the x data and covariance matrix have the same
 * number of rows and that the covariance matrix is square.
 *
 * @param x the [n,k] array representing the x sample
 * @param covariance the [n,n] array representing the covariance matrix
 * @throws DimensionMismatchException if the number of rows in x is not equal
 * to the number of rows in covariance
 * @throws NonSquareMatrixException if the covariance matrix is not square
 */
protected void validateCovarianceData(double[][] x, double[][] covariance) {
    if (x.length != covariance.length) {
        throw new DimensionMismatchException(x.length, covariance.length);
    }
    if (covariance.length > 0 && covariance.length != covariance[0].length) {
        throw new NonSquareMatrixException(covariance.length, covariance[0].length);
    }
}
项目:astor    文件:AbstractMultipleLinearRegression.java   
/**
 * Validates that the x data and covariance matrix have the same
 * number of rows and that the covariance matrix is square.
 *
 * @param x the [n,k] array representing the x sample
 * @param covariance the [n,n] array representing the covariance matrix
 * @throws DimensionMismatchException if the number of rows in x is not equal
 * to the number of rows in covariance
 * @throws NonSquareMatrixException if the covariance matrix is not square
 */
protected void validateCovarianceData(double[][] x, double[][] covariance) {
    if (x.length != covariance.length) {
        throw new DimensionMismatchException(x.length, covariance.length);
    }
    if (covariance.length > 0 && covariance.length != covariance[0].length) {
        throw new NonSquareMatrixException(covariance.length, covariance[0].length);
    }
}
项目:astor    文件:AbstractMultipleLinearRegression.java   
/**
 * Validates that the x data and covariance matrix have the same
 * number of rows and that the covariance matrix is square.
 *
 * @param x the [n,k] array representing the x sample
 * @param covariance the [n,n] array representing the covariance matrix
 * @throws DimensionMismatchException if the number of rows in x is not equal
 * to the number of rows in covariance
 * @throws NonSquareMatrixException if the covariance matrix is not square
 */
protected void validateCovarianceData(double[][] x, double[][] covariance) {
    if (x.length != covariance.length) {
        throw new DimensionMismatchException(x.length, covariance.length);
    }
    if (covariance.length > 0 && covariance.length != covariance[0].length) {
        throw new NonSquareMatrixException(covariance.length, covariance[0].length);
    }
}
项目:idylfin    文件:AbstractMultipleLinearRegression.java   
/**
 * Validates that the x data and covariance matrix have the same
 * number of rows and that the covariance matrix is square.
 *
 * @param x the [n,k] array representing the x sample
 * @param covariance the [n,n] array representing the covariance matrix
 * @throws DimensionMismatchException if the number of rows in x is not equal
 * to the number of rows in covariance
 * @throws NonSquareMatrixException if the covariance matrix is not square
 */
protected void validateCovarianceData(double[][] x, double[][] covariance) {
    if (x.length != covariance.length) {
        throw new DimensionMismatchException(x.length, covariance.length);
    }
    if (covariance.length > 0 && covariance.length != covariance[0].length) {
        throw new NonSquareMatrixException(covariance.length, covariance[0].length);
    }
}
项目:autoredistrict    文件:AbstractMultipleLinearRegression.java   
/**
 * Validates that the x data and covariance matrix have the same
 * number of rows and that the covariance matrix is square.
 *
 * @param x the [n,k] array representing the x sample
 * @param covariance the [n,n] array representing the covariance matrix
 * @throws DimensionMismatchException if the number of rows in x is not equal
 * to the number of rows in covariance
 * @throws NonSquareMatrixException if the covariance matrix is not square
 */
protected void validateCovarianceData(double[][] x, double[][] covariance) {
    if (x.length != covariance.length) {
        throw new DimensionMismatchException(x.length, covariance.length);
    }
    if (covariance.length > 0 && covariance.length != covariance[0].length) {
        throw new NonSquareMatrixException(covariance.length, covariance[0].length);
    }
}