You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Matrix<_> (i.e. Vec<Vec<_>>) are variable-length, this leads to a number of issues wherein I must implement my own custom functions for matrix arithmetic, instead of being able to use the syntactic sugar provided by Add, Mul, etc. that would make the matrix representation easier to work with.
Figure out how to statically encode Matrix such that one can meaningfully define One (the identity matrix, if it's square; if not, ...?) and Zero (zero matrix).
Restructure Matrix trait to use Add<Self>, Neg<Self>, Mul<Other>, etc.
The text was updated successfully, but these errors were encountered:
I gave up on implementing a custom Matrix type myself and will be pulling from the nalgebra library to whatever extent possible. See 12-integrate-matrix-libs/src/data_structures.rs and #12 for more details about how this affects encoded Matrices (TL;DR fields are amenable to nalgebra, but group action / scalar multiplication still requires a custom implementation).
Since
Matrix<_>
(i.e.Vec<Vec<_>>
) are variable-length, this leads to a number of issues wherein I must implement my own custom functions for matrix arithmetic, instead of being able to use the syntactic sugar provided byAdd
,Mul
, etc. that would make the matrix representation easier to work with.Matrix
such that one can meaningfully defineOne
(the identity matrix, if it's square; if not, ...?) andZero
(zero matrix).Add<Self>
,Neg<Self>
,Mul<Other>
, etc.The text was updated successfully, but these errors were encountered: