1function [c,s,aa,bb] = CGivens(a,b)
2%[c,s,aa,bb]=CGivens(a,b)
3% Compute a Givens rotation Q=[c,-s;s,c] such that the transformed
4% vector [aa;bb] = Q[a;b] = [w 0] with abs(w)=norm([a;b])
6% Author : Alain Barraud, copyright abc.consultant@wanadoo.fr 2003-2015
8%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
13 aa=a;bb=0;c = 1;s = 0;
15%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%