mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Clean up Java style (#5990)
Also make equivalent changes in C++ where applicable. Co-authored-by: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com>
This commit is contained in:
@@ -42,8 +42,7 @@ class DARETest extends UtilityClassTest<DARE> {
|
||||
.times((B.transpose().times(X).times(B).plus(R)).inv())
|
||||
.times(B.transpose().times(X).times(A)))
|
||||
.plus(Q);
|
||||
assertMatrixEqual(
|
||||
new Matrix<States, States>(new SimpleMatrix(Y.getNumRows(), Y.getNumCols())), Y);
|
||||
assertMatrixEqual(new Matrix<>(new SimpleMatrix(Y.getNumRows(), Y.getNumCols())), Y);
|
||||
}
|
||||
|
||||
<States extends Num, Inputs extends Num> void assertDARESolution(
|
||||
@@ -63,8 +62,7 @@ class DARETest extends UtilityClassTest<DARE> {
|
||||
.times((B.transpose().times(X).times(B).plus(R)).inv())
|
||||
.times(B.transpose().times(X).times(A).plus(N.transpose())))
|
||||
.plus(Q);
|
||||
assertMatrixEqual(
|
||||
new Matrix<States, States>(new SimpleMatrix(Y.getNumRows(), Y.getNumCols())), Y);
|
||||
assertMatrixEqual(new Matrix<>(new SimpleMatrix(Y.getNumRows(), Y.getNumCols())), Y);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user