求助:givapp()是什么函数
请各位指教,在读一段程序时候碰到这个函数,不知是干什么用的,在help里没有找到,只有找高人帮忙了。 function vrot=givapp(c,s,vin,k)%Apply a sequence of k Givens rotations, used within gmres codes
%
%C. T. Kelley, July 10, 1994
%
% This code comes with no guarantee or warranty of any kind.
%
%function vrot=givapp(c, s, vin, k)
%
vrot=vin;
for i=1:k
w1=c(i)*vrot(i)-s(i)*vrot(i+1);
% w2=s(i)*vrot(i)+c(i)*vrot(i+1);
w2=s(i)*vrot(i)+conj(c(i))*vrot(i+1);
vrot(i:i+1)=;
end Iterative Methods for Linear and Nonlinear Equations
里的一个函数,不是matlab自带的
页:
[1]