Open ProfFan opened 4 years ago
These operations sound good to me!
We've talked a lot about the ideal fixed size matrix and I think we still haven't figured it out yet, but that shouldn't stop us from having a quick and dirty implementation that supports all the operations you need. I think I could have one ready in a few hours.
When implementing the chordal initialization I found out that it is almost essential that we have:
MatrixN.zero
andMatrixN.identity
.Otherwise I end up writing code like this:
Moreover, it becomes almost impossible to write code when I try to implement SVD for 3x3 rotation matrices as I cannot write stuff like
A[0, 0]
, and I cannot dynamically index the matrix in for loops...I am not sure if this design is good in a "Swifty" sense, so please correct me if I make silly mistakes!