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...
*The blog has changed quite a bit since writing this post For finding out who I, Jihyun Julie Jeon, am, one has to look no further than my blog. Although there aren't any posts on it yet, everything, from the name to the background, represents a part of me.  The name of my blog, 0110110101101001011011100110010000100000011100000110000101101100011000010110001101100101, is actually binary code for "My Mind Palace" (I wanted to have a more personal name like "Jihyun's Mind Palace" but I couldn't get it to fit under 100 characters) The use of binary code represents my passion for computer programming and my dreams to become a computer programmer.  The name itself, "Mind Palace", is a reference to the BBC hit tv series, Sherlock. A keen Sherlockian would have noticed that the first sentence of this post is also a reference to part of a scene in "The Sign of Three". I am a huge fan of the series, having binge-watched it at least 4...

I remember my childhood

     "I remember" is a common but magical way to start a sentence because it brings up memories that I have forgotten about for a long time.     I remember when I was still a baby, unable to form sentences. I remember, with the help of my mom's stories, the times that I didn't want my mom to go to work. I remember crying while clutching her legs, wanting to be held and never let go. I remember how cold the marble floor was against my legs but how I was unable to stand up due to the devastating situation.  I remember the panic I felt, thinking that my mom was leaving me for good. I remember the mixed expression on my mom's face, feeling sorry for leaving me crying but unable to keep a straight face because my sister was attempting to play with dolls with me, uncaring about the emotional crisis I was going through. I remember my devotion and love towards my mom and marvel at the fact that she is still the most important person in my life today.  ...