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

The True Culprit: Review of Black Mirror S4E2 Arkangel

I would binge watch..... 2 more episodes  (Although the Arkangel wasn't enough to lure me into the series, considering the fact that my only experience with Black Mirror is with the 2 of the lowest ranking episodes, I would give it a second chance.) -------------------------------------------Short Review for the Lazy------------------------------------------- Although "Arkangel" received mixed reviews and low ratings (from the general audience and me, the writer of this review), it succeeded in posing the question "Who is to blame?" This question is complex, bringing out a variety of answers in our class discussion. It is hard to judge whether a character is to blame or not. Although Marie's actions were extreme, they were understandable. Although Sara acted like a delinquent, her actions were not that strange for a teenager of her age. In the end, following traditional Black Mirror fashion, most people will agree that the new technology is...

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

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