Matrix Multiplication #57
Replies: 0 comments 1 reply
-
Dear,
you have the . operator that does the job (not well documented I admit :-)
).
See below :
write matrix([[1],[2]]) . matrix([[1,3]]);
…---> 7
write matrix([[1,3]]) . matrix([[1],[2]]);
---->
1;2
3;6
Cheers
Benoit
Le jeu. 1 juin 2023 à 19:52, Antonia Schroff ***@***.***> a
écrit :
I'm trying to implement a Kalman Filter in Gama, which is why I need to
multiply matrices. However the "*" operator only seems to multiply matrices
value by value. Is there any way I can multiply two matrices, like e.g. a
2x3 with a 3x1 matrix?
Thanks!
—
Reply to this email directly, view it on GitHub
<https://github.com/gama-platform/gama/discussions/3819>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAL3WSW2GQMU66OUMJRYTM3XJDJEPANCNFSM6AAAAAAYXIQDLA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lesquoyb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to implement a Kalman Filter in Gama, which is why I need to multiply matrices. However the "*" operator only seems to multiply matrices value by value. Is there any way I can multiply two matrices, like e.g. a 2x3 with a 3x1 matrix?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions