Code Monkey home page Code Monkey logo

mips_matrix_calculator's Introduction

MIPS Matrix Calculator

Program enables to do the following operations:

  • addition,
  • subtraction,
  • multiplication,
  • calculation of determinant. It gets input from a file of specific format. Matrices are read to bufor, then dynamically allocated on heap. The same goes for a result. Program outputs (prints) a product of calculation. Determinant is calculated using Laplace expansion.

Funtions

Program has few specified funtions:

  • get_matrix
  • get_m_n
  • get_determinant ... Not all of them allocate local variables, some of them return using secified registers.

File format

<operation>
<matrix1's size>
<matrix1>
<matrix2's size>
<matrix2>

+
2 3
134 2 3
-2 8 72
2 3
1 0 -3
6 2 9

Operation: + - * det Numbers can be positive or negative.

Constrains

If a specified operation isn't doable, then program throw an error communating that. The same applies to path address, which is stored in the .data segment. Please be cautious about additional whitespace: space and newline. Program won't work properly if this is violeted.

Restrictions

An error will accur (during for example multipliacation or determinant computation) if the intiger can't be represted in 32 bits in U2.

mips_matrix_calculator's People

Contributors

adam-narozniak avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.