111 integer,
intent(in) :: m, n, k, ldq, ldr, j
112 real(real64),
intent(inout) :: Q(ldq,*)
113 real(real64),
intent(inout) :: R(ldr,*)
114 real(real64),
intent(out) :: w(*)
115 external dcopy,dqhqr,dqrot
118 if (m == 0 .or. n == 0 .or. j == n)
return
125 else if (k /= m .and. (k /= n .or. n >= m))
then
127 else if (ldq < m)
then
129 else if (ldr < k)
then
131 else if (j < 1 .or. j > n+1)
then
140 call dcopy(k,r(1,i+1),1,r(1,i),1)
144 call dqhqr(k+1-j,n-j,r(j,j),ldr,w,r(1,n))
146 call dqrot(
'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 dqrot(dir, m, n, q, ldq, c, s)
Applies a sequence of Givens rotations from the right to a matrix.
subroutine dqrdec(m, n, k, q, ldq, r, ldr, j, w)
Updates a QR factorization after deleting a column.
subroutine dqhqr(m, n, r, ldr, c, s)
Reduces an upper Hessenberg matrix to upper trapezoidal form.
Module for custom error handling.