Use nicer array syntax

This commit is contained in:
Gold856
2025-03-16 23:41:35 -04:00
committed by Matt Morley
parent a42aed1e7f
commit 4ffd1fc600
10 changed files with 72 additions and 87 deletions

View File

@@ -50,10 +50,9 @@ public class ConstrainedSolvepnpTest {
@Test
public void smoketest() {
double[] cameraCal =
new double[] {
600, 600, 300, 150,
};
double[] cameraCal = {
600, 600, 300, 150,
};
var field2points =
MatBuilder.fill(
@@ -86,7 +85,7 @@ public class ConstrainedSolvepnpTest {
MatBuilder.fill(Nat.N4(), Nat.N4(), 0, 0, 1, 0, -1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 1);
// Initial guess for optimization
double[] x_guess = new double[] {0.2, 0.1, -.05};
double[] x_guess = {0.2, 0.1, -.05};
var ret =
ConstrainedSolvepnpJni.do_optimization(