def iddr_rsvd(m, n, matvect, matvec, k):
 (U, V, S, ier) = _id.iddr_rsvd(m, n, matvect, matvec, k)
 if (ier != 0):
  raise _RETCODE_ERROR
 return (U, V, S)

def iddr_rsvd ( m , n , matvect , matvec , k ) : ( U , V , S , ier ) = _id . iddr_rsvd ( m , n , matvect , matvec , k ) if ( ier != 0 ) : raise _RETCODE_ERROR return ( U , V , S )
compute svd of a real matrix to a specified rank using random matrix-vector multiplication .