111 integer,
intent(in) :: m, n, k, ldq, ldr, j
112 real(real32),
intent(inout) :: Q(ldq,*), R(ldr,*)
113 real(real32),
intent(out) :: w(*)
114 external scopy,sqhqr,sqrot
117 if (m == 0 .or. n == 0 .or. j == n)
return
124 else if (k /= m .and. (k /= n .or. n >= m))
then
126 else if (ldq < m)
then
128 else if (ldr < k)
then
130 else if (j < 1 .or. j > n+1)
then
139 call scopy(k,r(1,i+1),1,r(1,i),1)
143 call sqhqr(k+1-j,n-j,r(j,j),ldr,w,r(1,n))
145 call sqrot(
'F',m,min(k,n)+1-j,q(1,j),ldq,w,r(1,n))
subroutine qrupdate_xerror(srname, info)
Dispatches error reporting to the handler.
subroutine sqrot(dir, m, n, q, ldq, c, s)
Applies a sequence of Givens rotations from the right to a matrix.
subroutine sqhqr(m, n, r, ldr, c, s)
Reduces an upper Hessenberg matrix to upper trapezoidal form.
subroutine sqrdec(m, n, k, q, ldq, r, ldr, j, w)
Updates a QR factorization after deleting a column.
Module for custom error handling.