Giter Club home page Giter Club logo

decomposition_time_analysis's Introduction

Decomposition_Time_Analysis

This project demonstrates how to perform QR, LU, and Cholesky decompositions on symmetric positive definite (SPD) matrices using the Eigen library in C++. It measures the average time taken for each decomposition method and provides a comparison of their performance.

Table of Contents

Introduction

This project defines a MatrixDecomposer class that performs matrix decompositions on randomly generated symmetric positive definite (SPD) matrices. It showcases three decomposition techniques:

  • QR Decomposition
  • LU Decomposition
  • Cholesky Decomposition

Decomposition Details

  • QR Decomposition: Factorizes a matrix into a product of an orthogonal matrix (Q) and an upper triangular matrix (R).
  • LU Decomposition: Decomposes a matrix into a product of a lower triangular matrix (L) and an upper triangular matrix (U).
  • Cholesky Decomposition: Performs a specialized LU decomposition for symmetric positive definite matrices, resulting in a lower triangular matrix (L).

Performance Measurement

The program measures the average time taken for each decomposition method over a fixed number of iterations (10 by default). The performance results are displayed as:

  • Average QR Decomposition Time
  • Average LU Decomposition Time
  • Average Cholesky Decomposition Time
  • The ratios of the times taken by QR, LU, and Cholesky decompositions are also displayed for comparison.

decomposition_time_analysis's People

Contributors

lanaanvar 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.