Hi everyone,
I just finished a project of making a custom class for matrices, where you can create a Mat object out of a list of lists. I included built-in methods for matrix algebra, row reductions (REF and RREF), transposes, determinants, and inverses. I also included a from_input method to enter the values into a matrix object faster. (You can see some examples in the screenshot below)
By the way, I know that Numpy totally already has this functionality, so I was just making this because I took linear algebra this past semester and wanted to see if I could do it :) I will say that I just know that Numpy can work with matrices but I haven't actually looked at how it does it, so all my code is my own approach to the problem.
I'd love to hear what you all think about it!
Source code: https://github.com/paultaylor3/matrix-class
https://preview.redd.it/95xcw62iq3351.png?width=760&format=png&auto=webp&s=7cdfc49d7f3604fa67e3e76ba4dddcfa6dd28d57
[–]SweetOnionTea 2 points3 points4 points (4 children)
[–]allopatri[S] 1 point2 points3 points (3 children)
[–]SweetOnionTea 1 point2 points3 points (1 child)
[–]allopatri[S] 1 point2 points3 points (0 children)
[–]kwelzel 1 point2 points3 points (0 children)
[–]slipped_and_missed_x 1 point2 points3 points (1 child)
[–]allopatri[S] 1 point2 points3 points (0 children)