Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: #2990 DenseMatrix can mutate input arrays #2991

Merged
merged 11 commits into from Jul 27, 2023

Conversation

josdejong
Copy link
Owner

Fixes #2990

  • Fix DenseMatrix being able to mutate the original input array
  • A small adjustment in the internal assign to make it more clear that it is temporarily wrapping an Array into a Matrix

Copy link
Collaborator

@gwhitney gwhitney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some concerns about whether this is ready for merging, see the review comments, thanks.

src/type/matrix/DenseMatrix.js Show resolved Hide resolved
src/type/matrix/DenseMatrix.js Outdated Show resolved Hide resolved
src/expression/node/utils/assign.js Show resolved Hide resolved
@gwhitney
Copy link
Collaborator

Everything looked good to me at this point, so I synced this PR with develop and the tests are running. As far as I am concerned, you could consider merging presuming the tests pass.

@josdejong josdejong merged commit a30d1f8 into develop Jul 27, 2023
10 checks passed
@josdejong josdejong deleted the fix/2990_densematrix_mutating_input branch July 27, 2023 09:42
@josdejong
Copy link
Owner Author

Published now in v11.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Arguments to matrix operations appear to be modified by side effect
2 participants