Derive Modified Gram Schmidt QR Decomposition Algorithm from Gram Schmidt Orthogonalisation (part 2)

All rights reserved. Please don‘t share this article without notifying me. Email address: [email protected]

From eq. 10 in part 1 we can find the Classical Gram Schmidt Algorithm, which is numerically unstable or sensitive to perturbation:

Q=zeros((m,n))
R=zeros((n,n))
for k= 1 to n
    tmpk=cAk
    for i= 1 to k-1
        R[i][k]=cAk^T*cQi
        tmpk=tmpk-R[i][k]*cQi
    R[k][k]=||tmpk||
    cQk=tmpk/R[k][k]

Q calculated by Classical Gram Schmidt algorithm is not very orthogonal due to rounding errors. An example is provided by X. Jiao[1]

  

The error introduced in q1 also cause errors in q2 and q3. We will discuss how to avoid this in the next part.

[1] http://www.ams.sunysb.edu/~jiao/teaching/ams526_fall11/lectures/lecture06.pdf

原文地址:https://www.cnblogs.com/cxxszz/p/8512517.html

时间: 2024-10-20 17:09:23

Derive Modified Gram Schmidt QR Decomposition Algorithm from Gram Schmidt Orthogonalisation (part 2)的相关文章

Matrix QR Decomposition using OpenCV

Matrix QR decomposition is very useful in least square fitting model. But there is no function available to do it in OpenCV directly. So i write a function to do it myself. It is based on the House Holder Algorithm. The defailed algorithm can be foun

Gram Shimidt QR Factorization Matlab version

function [Q,R] = gram_schmidt_qr(A) % Formation: A = QR % The implementation of QR Factorization(classical Gram-Schmidt method) % Q is orthonormal basis for R(A) % R is an upper-triangular matrix with positive diagonal entries. % Author: Zhenlin Du(J

QR分解

从矩阵分解的角度来看,LU和Cholesky分解目标在于将矩阵转化为三角矩阵的乘积,所以在LAPACK种对应的名称是trf(Triangular Factorization).QR分解的目的在于将矩阵转化成正交矩阵和上三角矩阵的乘积,对应的分解公式是A=Q*R.正交矩阵有很多良好的性质,比如矩阵的逆和矩阵的转置相同,任意一个向量和正交矩阵的乘积不改变向量的2范数等等.QR分解可以用于求解线性方程组,线性拟合.更重要的是QR分解是QR算法的基础,可以用于各种特征值问题,所以QR分集的应用非常广泛.

Computer Graphics Research Software

Helping you avoid re-inventing the wheel since 2009! Last updated December 5, 2012.Try searching this page for keywords like 'segmentation' or 'PLY'.If you would like to contribute links, please e-mail them to [email protected]. Papers & Archives Gra

计算机图形学研究常用工具软件和代码

Computer Graphics Research Software Helping you avoid re-inventing the wheel since 2009! Last updated December 5, 2012.Try searching this page for keywords like 'segmentation' or 'PLY'.If you would like to contribute links, please e-mail them to [ema

Top 10 Algorithms of 20th and 21st Century

Top 10 Algorithms of 20th and 21st Century MATH 595 (Section TTA) Fall 2014 TR 2:00 pm - 3:20 pm, Room 341 Altgeld HallUniversity of Illinois at Urbana-Champaign, Department of Mathematics Instructors : Yuliy Baryshnikov and Anil N. Hirani Schedule:I

What is an intuitive explanation of the relation between PCA and SVD?

What is an intuitive explanation of the relation between PCA and SVD? 36 FOLLOWERS Last asked: 30 Sep, 2014 QUESTION TOPICS Singular Value Decomposition Principal Component Analysis Intuitive Explanations Statistics (academic discipline) Machine Lear

Math 353/DSC 301, Spring 2019, Final Exam

Math 353/DSC 301, Spring 2019, Final ExamPlease remember to write down your name and student ID. This is the take-home portion whichhas four problems. Only independently-finished and fully-justified answer will receive full credit.1. [11 = 3 + 2 + 4

FCM算法文献总结

近年来,FCM 算法越来越受欢迎,被应用到各个领域范围,针对FCM算法的改进也越来越多.本文总结了近两年来的算法改进,如有改进算法不全请自己查找哦,论文太多啦.由于参考文献均为英文论文,这里就不翻译了,毕竟俺不是歪果仁. 2014年 D-FICCA (Density-based Fuzzy Imperialist Competitive Clustering Algorithm )参考文献:D-FICCA: a density-based fuzzy imperialist competitiv