104 character,
intent(in) :: dir
105 integer,
intent(in) :: m, n, ldq
106 complex(real64),
intent(inout) :: Q(ldq,*)
107 real(real64),
intent(in) :: c(*)
108 complex(real64),
intent(in) :: s(*)
113 if (m == 0 .or. n == 0 .or. n == 1)
return
117 if (.not.(fwd .or.
lsame(dir,
'B')))
then
123 else if (ldq < m)
then
132 call zrot(m,q(1,i),1,q(1,i+1),1,c(i),conjg(s(i)))
136 call zrot(m,q(1,i),1,q(1,i+1),1,c(i),conjg(s(i)))
subroutine zqrot(dir, m, n, q, ldq, c, s)
Applies a sequence of Givens rotations from the right to a matrix.