Coder Social home page Coder Social logo

biocla / fmm-c-- Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 41 KB

collection of fast multiplication algorithms and matrix operations. It is written in C++ and is header only. It is designed to be used in other projects and rewritten to fit the needs of the project

Makefile 6.34% C++ 93.66%
algorithms calculus cpp data-structures fast-multiplication library math mathematics matrix-calculations matrix-multiplication matrix-operations

fmm-c--'s Introduction

FMM Library

Fast multiplication and matrix library

Info

This library is a collection of fast multiplication algorithms and matrix operations. It is written in C++ and is header only. It is designed to be used in other projects and rewritten to fit the needs of the project.

The library is mostly written for educational purposes rather than anything else. I highly recommend not using it in any production code.

A test program is included. It can be compiled and executed using the provided makefile. The test program is not meant to be used as a benchmark, but rather as a proof of concept.

Important Notes

The library only supports square matrices (for now).

Matrices are stored in a 1D array, which is then mapped to 2D indices using the given () operator. (See the Matrix class for more information) Obviously, this can be changed to best fit your needs.

There might (will) be bugs in the code and a lot of space for optimisation.

Algorithms (fmm)

  • Naive multiplication
  • Strassen's multiplication
  • Schonhage Laser Method multiplication (TODO)

Matrix Operations (SquareMatrix)

  • Addition/Subtraction
  • Multiplication by a scalar
  • Transposition
  • Determinant
  • Gaussian Elimination (Row Echelon Form)
  • Adjunct
  • Rank
  • split (Creates 4 submatrices from any square matrix)
  • merge (Merges 4 submatrices into a single matrix)
  • Reduction (remove [i][j] row and column)
  • Identity (n-th order)
  • Inverse
  • Kronecker Product
  • Hadamard Product
  • Some other stuff... (read the code)

fmm-c--'s People

Stargazers

 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.