Is your feature request related to a problem? Please describe.
Yes, while this issue appears to be a bug, the solutions are extensive and align more with adding a feature than fixing a bug. Currently, when attempting to add another matrix with the same name as an existing one, the program exhibits unexpected behavior.
Steps to reproduce unexpected behavior:
- Enter the values for a matrix (e.g., named 'A'). For clarity, use an invertible matrix, such as [[2, 0], [0, 2]]. This will make the duplicate application of the matrix be clearer to see.
- Click the button to add a matrix.
- Click the button again.
Result: The effect of matrix A was applied twice, but the matrix shown in matrix list still shows A to have the values [[2, 0], [0, 2]].
Expected behavior: The effect of matrix A should not be applied twice, or its values in matrix-list should at least be changed.
Describe the solution you'd like
The program should intelligently handle the addition of a matrix with an existing name. There should be a duplicate check, and the program should update the values of the existing matrix instead of reapplying it directly to the graph.
For cases where the matrix to be edited is below other matrices, the program should undo transformations up to the edited matrix, allow the edit, and then reapply the subsequent matrices.
Describe alternatives you've considered
The program could add a matrix with a modified name to indicate that a matrix with that name already exists, similar to how the apply-inverse button works.
Additional context
This feature might not be of the highest priority given that the animations for these transformations are not yet implemented.
Is your feature request related to a problem? Please describe.
Yes, while this issue appears to be a bug, the solutions are extensive and align more with adding a feature than fixing a bug. Currently, when attempting to add another matrix with the same name as an existing one, the program exhibits unexpected behavior.
Steps to reproduce unexpected behavior:
Result: The effect of matrix A was applied twice, but the matrix shown in matrix list still shows A to have the values [[2, 0], [0, 2]].
Expected behavior: The effect of matrix A should not be applied twice, or its values in matrix-list should at least be changed.
Describe the solution you'd like
The program should intelligently handle the addition of a matrix with an existing name. There should be a duplicate check, and the program should update the values of the existing matrix instead of reapplying it directly to the graph.
For cases where the matrix to be edited is below other matrices, the program should undo transformations up to the edited matrix, allow the edit, and then reapply the subsequent matrices.
Describe alternatives you've considered
The program could add a matrix with a modified name to indicate that a matrix with that name already exists, similar to how the apply-inverse button works.
Additional context
This feature might not be of the highest priority given that the animations for these transformations are not yet implemented.