Giter Site home page Giter Site logo

matrixalgorithms's Introduction

Matrix Algorithms

Build Status GitHub license GitHub contributors GitHub issues GitHub pull-requests GitHub pull-requests closed

Implemented operations with matrices:

  • Equality
  • Addition
  • Subtraction
  • Scalar multiplication
  • Matrix multiplication
  • Generating identity matrix
  • Generating matrix of zeros
  • Generating matrix of ones
  • Matrix inverstion
  • Transpose of a matrix
  • Determinant of a matrix
  • Concatenating of matrices

matrixalgorithms's People

Contributors

tomaszwychocki avatar varuntumbe avatar thecarooline avatar akkamath avatar rafu01 avatar yarinvasket avatar

Stargazers

 avatar  avatar Soumik Mukherjee avatar

Watchers

 avatar

matrixalgorithms's Issues

Implement matrix concatenation method

Implement a new method, which concatenates 2 matices. It should be possible to concatenate 2 matices form the top, bottom, left and right:

It should be not possible (method should throw an exception) to concatenate 2 matrices in the following cases:

Test function, test cases and method declaration are already in the code, just uncomment them and finish by adding your implementation.

Implement scalar multiplication

Implement scalar multiplication using operator overloading.
New method sould return a new matrix as a result of multiplication: M = M1 * n
Test your code by adding new test cases.

Implement matrix subtraction

Implement matrix subtraction using operator overloading.
New method sould return a new matrix as a result of subtraction: M = M1 - M2
It must be possible to make a chained subtraction operation: M = M1 - M2 - M3 - M4 - ...
This method should throw an exception if dimensions of M1 and M2 are not equal.

Implement matrix multiplication

Implement matrix multiplication using operator overloading:

  • New method (operator*) should return a new matrix as a result of multiplication: M = M1 * M2
  • Second method (operator*=) should modify current matrix as a result of multiplication: M1 *= M2
  • These methods should throw an exception if dimensions of M1 and M2 are not correct.
  • Remember: M1 * M2 != M2 * M1
  • Test your code by adding new test cases.

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.