% FUSION   Combines two Givens transformations to obtain a single Givens 
%          transformation
%
%    G=FUSION[G1,G2]
% 
%    G1,G2 are the vectors of the two Givens transformations to be
%    combined.
%    G is the combination of G1*G2
%
%    All three Givens transformations are of the form [c,s]^T, 
%    where
%        
%        | c       s       |   
%    G = |                 |   
%        |-conj(s) conj(c) |   
%
%
%    Software of the MaSe - Group
%    mase-at-cs.kuleuven.ac.be
%    Revision Date: 21/06/2007


function G=FUSION(G1,G2)
  
  % Based on two Givens transformations G1 and G2, we fuse these two
  % matrices together
    
    
  G(1,1)=G1(1)*G2(1)-conj(G1(2))*G2(2);
  G(2,1)=G1(2)*G2(1)+conj(G1(1))*G2(2);