⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qrqtbgiv.m

📁 Mathematical Methods by Moor n Stiling.
💻 M
字号:
function [B] = qrqtbgiv(B,thetac,thetas)
% 
% Given thetac and thetas containing rotation parameters from Givens rotations,
% (produced using qrqrgivens), compute Q^H B, where Q is formed (implicitly)
% from the rotations in Theta.
%
% function [B] = qrqtbgiv(B,thetac,thetas)
%
% B = matrix to be opererated on
% thetac = cosine component of rotations from Givens rotations
% thetas = sine component of rotations from Givens rotations
%
% Output: B <-- Q^H B

% Copyright 1999 by Todd K. Moon

[m,n] = size(thetac);
for k=1:n
  for i=m:-1:k+1
    c = thetac(i,k); s = thetas(i,k);
    % apply the givens rotation to rows (i-1) and i of B
    B(i-1:i,:) = [c*B(i-1,:) - s*B(i,:); s*B(i-1,:) + c*B(i,:)];
  end
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -