Skip to main content

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

Comments

Popular posts from this blog

Ongoing tale: My Heart is Broken

Mavis Gallant's My Heart is Broken follows the conversation between Jeannie and Mrs. Thompson regarding Jeannie's rape. Sadly, but not surprisingly, the aftermath of rape has not changed much since 1964. Mrs. Thompson implies that Jeannie is also responsible for the rape occurring. With words like "If you'd listened to me, none of this would have happened" or "I told you it would make trouble, all that being cute and dancing around" Mrs. Thompson blames Jeannie for what happened. The rapist is nonexistent in this conversation, Mrs. Thompson refusing to find out who he is. Jeannie is considered the main reason of the rape as Mrs. Thompson believes it could have been prevented if Jeannie acted differently. Mr. Sherman goes even further, arguing "no man by his own self can rape a girl, so there was either two men or else she's invented the whole story". This leads to a social atmosphere at the camp prevents Jeannie and her husband Vern fro

Modern Family

A+ (For its entertaining jokes and stories, its representation and diversity, and how relatable it is) After spending a month binge watching one of my favorite shows, How I Met Your Mother, I had a longing for more clever sitcoms. I turned my attention to Modern Family, the name coming up in numerous recommendations. And I found my all time favorite show. As the title suggests, Modern Family follows a modern family. The family is consisted of three parts. :the Dunphy family that show an average American family, the Tucker-Pritchett family that shows a gay family, and the Pritchett-Delgado family that shows a multicultural family. The families encounter various social issues along with typical family concerns. The show is in a mockumentary style with separate interviews explaining the story and revealing the inner thoughts of each character. The representation in Modern Family is outstanding. Each family shows different forms of modern families. Cam Tucker, Mitchell Pr

True Love: After reading The Lady with the Dog and The Trick: Notes toward a Theory of Plot

I have never had the fortune of being in love. Of course, I had my fair share of childish crushes but I have never actually felt love. But after reading  The Lady with the Dog  by Anton Chekhov and   The Trick: Notes toward a Theory of Plot  by Marilyn Abilskov, I got a glimpse at what being crazy in love is. In both stories, the characters find meaning in their otherwise meaningless lives with their love. Both Dmitri and Anna were never in love before meeting each other. Dmitri is married to a wife that he is secretly afraid of and doesn’t care if he is unfaithful to her. “He had never once loved …. And only now when his head was grey he had fallen properly, really in love –for the first time in his life.” To Dmitri, meeting new women was a search for excitement and life. And his search ended when he found Anna. Anna became the center of his universe, unable to live his life without thinking about her, her existence haunting his mind. “In the evenings she peeped out at him from