Giter Site home page Giter Site logo

matrix's Introduction

  Matrix.h - A free library for matrix calculation. Invalid dimension for calculation
  will lead to empty matrix, therefore, one should check whether the matrix is
  empty after calculation.

  This library is easy to use, I have overloaded operators, one can use +,*,/,-,
  =,==,!= as they want, but there is no definition for matrix division (like A/B).
  One should use the inverse function inv() instead.

  The transpose() and inv() functions are static functions, which should use
  Matrix<Type>::transpose() and Matrix<Type>::inv() format to call, Type is the
  type you used to create the matrix.

  The elements of the matrix are easy to access. For example, we have a 2 by 1 vector called A, one could use 
  A[1][0] to get the second element or A[1][0] to assign a value to it.

  The show(int decimal) function can be used to visulise the matrix, where decimal specifies the decimal numbers.

  Detailed description: https://playground.arduino.cc/Code/Matrix.

  Feedback and contribution is welcome!

  Version 1.3
  * Overloading operator [], so we can access the element by using A[][]. Because the internal data structure is a two 
    dimensional array, we have to use A[*][0] or A[0][*] to access the element in a column or row matrix.

  Version 1.2
  * Now it can perform mixed calculation with scalars. 
    But you need to ensure the dimension of the matrix is 1 for plus and minus.

  Version 1.1
  * Improved the processing speed, it becomes more efficient.

  ----------------
  Version 1.0

  Created by Yudi Ren, Jan 05, 2018.
  [email protected]

matrix's People

Contributors

earsuit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jwrw linneslab

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.