Coder Social home page Coder Social logo

luksaiterugile / matrixnormcomparison Goto Github PK

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

Explore matrix norms, pseudo-inverses, and compare them in random 3x6 matrices. Investigate potential patterns and relationships.

License: MIT License

Python 100.00%
matrix python

matrixnormcomparison's Introduction

Norms of Matrices and Pseudo-Inverse Matrices

This repository contains Python code to generate random 3x6 matrices, calculate their norms, compute their pseudo-inverses, and compare the norms of both matrices. The goal is to explore any regularity or additivity between the norms of these matrices.

Overview

This program investigates the relationship between the norms of randomly generated 3x6 matrices and the norms of their corresponding pseudo-inverse matrices. We perform the following steps for 10,000 iterations:

  1. Generate a random 3x6 matrix with elements in the interval [-1, 1].
  2. Calculate the norm of the random matrix.
  3. Compute the pseudo-inverse of the random matrix.
  4. Calculate the norm of the pseudo-inverse matrix.

The norms of both matrices are plotted as histograms using Matplotlib to visualize any regularities or additivity.

Requirements

To run this code, you need the following Python libraries installed:

  • NumPy
  • Matplotlib

Program usage

Command to run the Python script:

python matrix_norm_comparison.py

The script will generate the histograms and save the results as an image file (matrix_comparison_histogram.png) in the same directory.

matrixnormcomparison's People

Contributors

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