Skip to content

Commit

Permalink
moved modified Gram-Schmidt
Browse files Browse the repository at this point in the history
  • Loading branch information
sth4nth committed Jan 28, 2016
1 parent 00e75bc commit 8322695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapter12/gso.m → common/mgs.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function X = gso(X)
% Gram-Schmidt orthogonalization
function X = mgs(X)
% Modified Gram-Schmidt orthogonalization
for i = 1:size(X,2)
v = X(:,i)-X(:,1:i-1)*(X(:,1:i-1)'*X(:,i));
X(:,i) = v/sqrt(dot(v,v));
Expand Down

0 comments on commit 8322695

Please sign in to comment.