List of usage examples for org.apache.commons.math3.linear Array2DRowRealMatrix getSubMatrix
public RealMatrix getSubMatrix(final int[] selectedRows, final int[] selectedColumns) throws NullArgumentException, NoDataException, OutOfRangeException
From source file:org.interpss.opf.dc.impl.EqIneqMatrixBuilder.java
private Array2DRowRealMatrix formReducedADWMatrix() { Array2DRowRealMatrix angleDiffWeight = formAngleDiffWeightMatrix(); try {//from ww w .j av a 2 s. co m int[] selectedRows = this.getNonSwingBusRows(); return (Array2DRowRealMatrix) angleDiffWeight.getSubMatrix(selectedRows, selectedRows); } catch (Exception e) { //e.printStackTrace(); IpssLogger.getLogger().severe(e.toString()); } return null; }