-
Notifications
You must be signed in to change notification settings - Fork 235
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
Add row/column algebra methods to Matrix for Vector #459
Comments
Hi @Aweptimum, Thank you for your interest in MathPHP. If I understand the request, it would be something like a new Matrix function called
Example
And there would be equivalent ones for a row add as well. Does that capture the intent of the feature request? |
Yes, it captures it perfectly 👍 |
Forgot to mention I might have the time to implement this myself next Friday if you approve of the feature |
This request doesn't really have any justification in the pure linear algebra world, but I have run into a use case where I want to treat 3 columns of a 3x3 matrix as vectors. This 3x3 matrix is constructed from 3 column vectors so that I can easily multiply it by another 3x3 rotation matrix (rotating the 3 vectors in one operation). The issue is that I'd still like to operate on the individual columns of the matrix. It would be convenient if there were methods similar to the
columnAdd/rowAdd
methods and friends that took a row/column index and a vector as arguments.Currently I'm doing this instead:
Which isn't much more trouble to write, it's just less clear what's going on.
Understandable if it's preferred to not add these kinds of methods.
The text was updated successfully, but these errors were encountered: