Skip to content

Commit

Permalink
fix: fix matrix indexing regression
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreminger committed Jan 6, 2025
1 parent 439bee2 commit e60bb21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/dimensional_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,7 @@ def IndexMatrix_dims(dim_values: list[Expr], expression: Expr, i: Expr, j: Expr)
i_value = dim_values[1]
j_value = dim_values[2]

return expression[i-1, j-1] # type: ignore
return expression[i_value-1, j_value-1] # type: ignore

class CustomFactorial(Function):
is_real = True
Expand Down

0 comments on commit e60bb21

Please sign in to comment.