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...

Frankenstein reimagined

*This was written as a creative writing assignment on June 18, 2018 for Ms. Seuk's British literature class. While attempting to imitate Mary Shelley's voice as closely as possible, I wrote what would have happened if Frankenstein actually created the mate for his monster instead of destroying it. I sat at my desk, blindly staring at the violent storm ripping at the windows. The thunder was roaring and the wind was howling as if to chastise me. Rain pelted the windows, ready to break in. A crack of lightening illuminated the room, only to be followed by impenetrable darkness seconds later. The lightening brought back memories I was trying to avoid. The lightening was not unlike the one that struck earlier in the night. With that crack of lightening, another filthy fiend opened its eyes. As promised, the monster took its female away out of my sight. It was now over. The monster and its partner were going to go far away, unable to harm anyone anymore. But disgust and agony s...

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...