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

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

Who is the most sympathetic character?:After reading Frankenstein

*This is a short in-class essay I wrote in my British literature class in 2018 on Mary Shelley's Frankenstein. Both Victor Frankenstein and his monster made bad choices, endured endless suffering and met a tragic end. However, one can only find their heart leaning towards the monster after reading Mary Shelley's Frankenstein. After reading about the monster, it is hard to fear it. Rather, thinking of its experience, it seems like a poor creature that never had the privilege of felling loved. From birth, the monster was met with pain, hatred, and fear. Even before he showed wrong actions, he never received any love or care. His kind actions brought violent, hate ridden reactions. After saving a girl, it got shot and after continuously helping a family out, it got a beating. The monster always dreamt of love, longed for a touch of care but was continuously shunned and attacked. Of course, it is portrayed as a villain and has committed many unforgivable crimes. However, one ...

Examination of Communal Ovens

Examination of Communal Ovens Korea Minjok Leadership Academy International Program Jeon, Ji Hyun Term Paper, AP European History, December 2018 I.       Introduction II.      Masonry Oven III.    Communal Ovens IV.    Factors that influenced communal ovens IV-a. Fire Hazards IV-b. Banalité IV-c. Cost/Efficiency IV-d. Industrial Revolution V.     Conclusion  Bibliography I.       Introduction Bread is an essential part of the diet of Europeans throughout history. On average, over 50 percent of all income was spent on bread from the 18 th century to the 19 th century.  [i] However, contrary to the numerous methods of baking bread and the types of different breads, the form of the oven has remained relatively unchanged for centuries.  Communal ovens in the form of masonry ovens have been used from ancient Rome as early as 125 BC...