Skip to content

Commit

Permalink
Delete class MatrixUtil (#1136)
Browse files Browse the repository at this point in the history
Signed-off-by: PRABAKARAN Sylvestre <sylvestre.prabakaran@rte-france.com>
  • Loading branch information
SylvestreSakti authored Dec 6, 2024
1 parent 4198f7a commit e224dbc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import com.powsybl.math.matrix.DenseMatrix;
import com.powsybl.openloadflow.util.Fortescue;
import com.powsybl.openloadflow.util.Fortescue.SequenceType;
import com.powsybl.openloadflow.util.MatrixUtil;

/**
* This class is made to build and access the admittance terms that will be used to fill up the Jacobian :
Expand Down Expand Up @@ -212,15 +211,15 @@ private static DenseMatrix buildTwoBlocsMatrix(DenseMatrix m66) {
}

private static void cancelComponentMatrix(DenseMatrix m, int component) {
MatrixUtil.resetRow(m, 2 * component - 2);
MatrixUtil.resetRow(m, 2 * component - 1);
MatrixUtil.resetRow(m, 2 * component + 4);
MatrixUtil.resetRow(m, 2 * component + 5);

MatrixUtil.resetColumn(m, 2 * component - 2);
MatrixUtil.resetColumn(m, 2 * component - 1);
MatrixUtil.resetColumn(m, 2 * component + 4);
MatrixUtil.resetColumn(m, 2 * component + 5);
m.resetRow(2 * component - 2);
m.resetRow(2 * component - 1);
m.resetRow(2 * component + 4);
m.resetRow(2 * component + 5);

m.resetColumn(2 * component - 2);
m.resetColumn(2 * component - 1);
m.resetColumn(2 * component + 4);
m.resetColumn(2 * component + 5);
}

private static void add22Bloc(double mx, double my, int i, int j, DenseMatrix m) {
Expand All @@ -235,7 +234,7 @@ private static DenseMatrix productMatrixM1M2M3(DenseMatrix m1, DenseMatrix m2, D
DenseMatrix mResult = m1.times(m2M3);

// clean matrix (reset to zero very low values) in case after fortescue and inverse multiplication
MatrixUtil.clean(mResult, EPS_VALUE);
mResult.removeSmallValues(EPS_VALUE);

return mResult;
}
Expand Down
45 changes: 0 additions & 45 deletions src/main/java/com/powsybl/openloadflow/util/MatrixUtil.java

This file was deleted.

0 comments on commit e224dbc

Please sign in to comment.