Giter Club home page Giter Club logo

math's Introduction

Math

Mainly linear algebra function by various computer languages

Complex Eigenvalue Problem

Single QR method

  1. Extraction of Eigenvalus by HouseholderTransformation.vba and SingleShiftQRforComplexEigenProblem.vba

     You can use DoubleShiftQR.vba instead of SingleShiftQRforComplexEigenProblem.vba, but it is NOT stable.

      [Extraction procedure]

     Asymmetric matrix -->(Householder transformation)-->

     Hessenberg matrix -->(Single QR shift)--> Extraction of Complex Eigenvalue

  1. Eigenvectors are extracted from original matrix (asymmetric matrix) and Eigenvalues by EigenVectorForComplex.vba

  #008c15 How to use?

  1. Turn visual basic window (ALT + F11 or develop on ribon -> Visual Basic) on ,and insert standard module. Then copy and paste user functions.

  2. Select range on Excel worksheet. (Excel extracts calculation values on this range)

  3. Type user function.

  4. Ctrl + Shift + Enter (It makes those cells as a chunk)

   For example

    =Householder(A1:D4)

    In this case, range A1:D4 are reference matrix (asymmetric matrix you want to extract Eigenvalues)


Real Eigenvalue Problem

  A symmetric matrix is transformed to diagonal matrix by Givens rotation.

  Each diagonal elements are Eigenvalues.

  Cholesky decompostion is for generalized Eigenvalue problem.

  For example noise and vibration (MK type) ,buckling (Eular buckling) and etc..

  Cholesky decomposition makes lower triangle matrix L from A square matrix (or upper triangle matrix U).

  A=L*L^t or A=U^t*U ( L^t is transpose(L) )

  Concept of Cholesky decomposition is Root of matrix. (I think so)

  LU decomposition is NOT same, but decomposition for Gauss elimination.

Applications

  Standard Eigenvalue problems are mainly for tensors probably.

  Tensors are a kind of number, are similar to complex value. And those notation are same as matrix.

  In real number and non-direction dependency, tensor is symmetric matrix.

  As N * N matrix, Tensor includes N pairs of principle value and principle axis.

  And principle values are as Eigenvalues, princple axes are as Eigenvector.

  So, you can use real Eigenvalue problem for solving tensor to principle values and axes.

  TensorConverter.htm is able to extract principles from tensor by browser easily.

  This Eingenvalue solver is translation from vba (Jacobi Eigenvalue algorithm) to javascript.


My understanding is that SVD is a type of Eigenvalue problem for non-square matrix.

SVD has not only similarity of Eigenvalue problem but also similarity of inverse matrix too.

In major use , it is for pseudoinverse in multiple regression equation.

Proper example of SVD (It is much easier to understand than my explanation.)

Another way for pseudoinverse is for example here.


Library for matrix calculation in Visual Studio C++

Matrix.h is library for matrix.

I wrote by Visual Studio 2013 C++. But almost of C++ compilers are able to compile by small modification.

See prototype to each function you want to use.

Sorry for comments are in Japanese, I will add explanations if I felt like to do. XD

Under Construction

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.