Giter Club home page Giter Club logo

learn-linalg's Introduction

linalg

Currently reinforcing my linear algebra and numerical analysis by reimplementing basic, fundamental algorithms in Python. My implementations are tested against numpy and scipy equivalents. Inspired by Alex Nichol's Go repository.

Feel free to read the notes which summarize parts of Justin Solomon's book as well as insights into my thought-process.

Contents

  • kahan: kahan summation for adding finite precision floating point numbers.
  • gelim: gaussian elimination with naive, partial and full pivoting for solving Ax = b.
  • ludecomp: LU, PLU and PLUQ decomposition for solving Ax = b.
  • determinant: compute the determinant (or log det) of a square matrix A using PLU factorization.
  • inverse: compute the inverse of a square matrix A using PLU factorization.
  • cholesky: cholesky decomposition for symmetric positive definite matrices A.
  • qrdecomp: QR decomposition of any matrix A using gram-schmidt or householder.
  • solve: solve Ax=b using PLU decomposition.
  • lstsq: solve least squares using QR decomposition.
  • eigen: single and multi eigenvalue finding algorithms, hessenberg factorization and the qr algorithm.
  • svd: singular value decomposition SVD of any matrix A.
  • optim: iterative linear solvers such as gradient descent and conjugate gradients.

Applications

  • imagealign: align a crooked image using least squares.
  • deblur: deblur an image by inverting it using conjugate gradients.
  • benchmarks: speed comparisons of different decompositions for solving Ax = b.

Resources

Todos

  • Make QR decomposition more efficient for Hessenberg matrices.
  • Implement QR decomposition with Givens rotations.

learn-linalg's People

Contributors

kevinzakka avatar

Watchers

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