Matrix multiplication explanation #1190
-
Hey @obiot If you don't mind, can you please explain how is the multiply method implemented in |
Beta Was this translation helpful? Give feedback.
Answered by
obiot
Jul 16, 2023
Replies: 1 comment
-
the matrix values are stored in a Float32Array ( The multiply method cache the reference to both arrays ( |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sudarshanmg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the matrix values are stored in a Float32Array (
val
).The multiply method cache the reference to both arrays (
a
, andb
,) and content of all values for both matrix (a0, a1,.... and b0, b1, ....), and then it's just to a typical multiplication. Final value are are set in the "original"a
(this.val) matrix.