Skip to content

Mainly linear algebra function by various computer languages

Notifications You must be signed in to change notification settings

YoichiroUrita/Math

Repository files navigation

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

About

Mainly linear algebra function by various computer languages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published