I am trying to implement an algorithm requiring matrix multiplication. I know I can program this in the rudimentary way similar to doing the process by hand, but I am worried about the computational costs associated with this.
In solidity, the "matrix" would just be a two-dimensional array or even just a vector.
Does anyone know of an existing implementation of matrix multiplication in solidity? I want to make sure I do this efficiently and am wondering if anyone else has established a good way of doing it. I am unable to find any library or posts on the subject.
Thanks in advance.