-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: updates MathArray types to be n-dimensional #3306
Conversation
Does multiplying arrays greater than 1-d together always result in an array, or can it result in a scalar? If that is the case, I can improve the multiplication types further. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good, this is a neat improvement!
Does multiplying arrays greater than 1-d together always result in an array, or can it result in a scalar? If that is the case, I can improve the multiplication types further.
Yes that is correct. I'll await the improvements that you have in mind before merging this PR 😄
Thanks for the update 👍
Good find, I would expect that to work both ways instead of just one. Can you open a separate issue for this? Merging your improvemens in the |
Published now in |
Description
mathjs/src/function/arithmetic/multiply.js
Lines 799 to 807 in 982bbdc
Test
Additional Notes