Skip to main content

Posts

Showing posts from September, 2018

Matrix

During my AP Computer Science class, I implemented a matrix using arrays. The implementation includes constructors that make a default matrix of 10 by 10 or a matrix in the size of the user's choice initialized by random numbers. Method of the implementation allow the user to make an identity matrix, change all elements with random numbers, or change all elements with console inputs. Users are able to perform the following operations: add, subtract, or multiply two matrices, check if two matrices are the same, perform row operations, and do gaussian eliminations and back substitution. There are also methods implemented to print a matrix in an easy to read form. https://github.com/hedgehog412/apcom/tree/master/Matrix