Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Oct 13, 2024
1 parent 674542a commit f6c9066
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/pose_graph_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
graph = jaxls.FactorGraph.make(factors, vars)

# Solve the optimization problem.
solution = graph.solve(linear_solver=jaxls.DenseLinearSolver())
solution = graph.solve()
print("All solutions", solution)
print("Pose 0", solution[vars[0]])
print("Pose 1", solution[vars[1]])
6 changes: 3 additions & 3 deletions src/jaxls/_preconditioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def make_point_jacobi_precoditioner(
block_l2_cols = jnp.sum(block_row.blocks_concat**2, axis=1).flatten()
indices = jnp.concatenate(
[
(start_col[:, None] + jnp.arange(width)[None, :])
for start_col, width in zip(
block_row.start_cols, block_row.block_widths
(start_col[:, None] + jnp.arange(block_cols)[None, :])
for start_col, block_cols in zip(
block_row.start_cols, block_row.block_num_cols
)
],
axis=1,
Expand Down

0 comments on commit f6c9066

Please sign in to comment.