Coder Social home page Coder Social logo

willy-chan / qr-decomposition Goto Github PK

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

Python program that uses numpy to perform the QR decomposition. This allows a user to decompose any real square input matrix into an orthogonal matrix (Q) multiplied by an upper triangular matrix (R).

License: MIT License

Python 100.00%
linear-algebra numpy-arrays pandas

qr-decomposition's Introduction

Python QR Decomposition Calculator

This project utilizes the NumPy library to decompose any real square matrix into an orthogonal matrix (Q) multiplied by an upper triangular matrix (R).

Demo

Overview

The QR-Decomposition breaks down a matrix A into the product of two matrices: an orthogonal matrix Q and an upper triangular matrix R. The decomposition is represented mathematically as:

$A = QR$

where

  • $A$ is the original input matrix
  • $Q$ is the orthogonal matrix
  • $R$ is the upper triangular matrix

The orthogonal matrix $Q$ has the property $Q^T * Q = I$, where $Q^T$ denotes the transpose of $Q$ and $I$ is the identity matrix. The upper triangular matrix $R$ contains the transformed values of the original matrix $A$.

Usage

To use the QR-Decomposition project, follow these steps:

  • Ensure that you have NumPy installed. You can install it using the following command:
pip install numpy
  • Open the Python script in your preferred code editor.
  • Provide the matrix A that you want to decompose. You can specify the matrix by modifying the input array in the code.
  • Run the script. The program will perform the QR-Decomposition and output the resulting orthogonal matrix $Q$ and upper triangular matrix $R$.

Please note that the QR-Decomposition project utilizes NumPy's built-in functions to perform the decomposition. It is designed for real square matrices.

Support

If you encounter any issues or have questions regarding the QR-Decomposition project, please feel free to open an issue on the GitHub repository or contact me personally at [email protected]

License

The QR-Decomposition project is released under the MIT License. You are free to use, modify, and distribute the code in accordance with the terms and conditions of the license.

qr-decomposition's People

Contributors

willy-chan 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.