Replies: 2 comments
-
You solution is a good and clear one. Other ideas:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Following Jos's advise to use the expression parser. You could try const scope = {M: matrix}
math.evaluate("M[:, end] = -M[:, end]", scope)
matrix = scope.M |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm just curious as theres a lot to this library I dont know yet, is there a simpler way to negate the last column in an arbitrarily sized matrix?
Beta Was this translation helpful? Give feedback.
All reactions