generated from evmckinney9/python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unintended mutation of original matrix in swap_rows_columns_list
Bug: - When swapping rows and columns of a numpy array within the function, the original matrix in memory was inadvertently modified due to mutable behavior of numpy arrays. Fix: - Created a copy of the input matrix inside the function before making any modifications. This ensures that only the copied matrix is altered, while the original matrix remains unchanged.
- Loading branch information
1 parent
476d0fb
commit fad0d1d
Showing
6 changed files
with
1,884 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.