K.
          LDWORK &gt;= MAX(1, N*(N+P) +
                           MAX( N + MAX( N,P ), N*(2*N+3)))
          If N &gt;= P, N &gt;= 1, the formula above can be written as
          LDWORK &gt;= N*(3*N + P + 3).
          For optimum performance LDWORK should be larger.

</PRE>
<B>Error Indicator</B>
<PRE>
  INFO    INTEGER
          = 0:  successful exit;
          &lt; 0:  if INFO = -i, the i-th argument had an illegal
                value;
          = 1:  the QR algorithm failed to converge when tryin