My matrix library is now complete. http://www.byond.com/developer/Lugia319/Matrices
I put in a host of functions that would be expected in a matrix library with the exception of a determinant function. I need to think of an algorithm for that. And before you ask, no, there isn't an inverse function either because you kinda need to know the determinant to make sure an inverse even exists. I might add a "vectorize" function that'll take a column and turn it into a vector to be used. We'll see. For now, I hope to use it in my pathfinding algorithm.
Any bugs you find, please send to me. Any suggestions on expanding this to make it more useful for you, just let me know and I'll see if it warrants an update.
ID:1605966
Jun 21 2014, 5:31 am (Edited on Jun 21 2014, 6:09 am)
|
|
I don't remember that it was difficult to code the algorithm for those methods but i was using MATLAB so maybe that's why xD.
Edit: In the long run maybe its better to use the determinant if your adding more functions that use it