def iddr_rid(m, n, matvect, k):
 (idx, proj) = _id.iddr_rid(m, n, matvect, k)
 proj = proj[:(k * (n - k))].reshape((k, (n - k)), order='F')
 return (idx, proj)

def iddr_rid ( m , n , matvect , k ) : ( idx , proj ) = _id . iddr_rid ( m , n , matvect , k ) proj = proj [ : ( k * ( n - k ) ) ] . reshape ( ( k , ( n - k ) ) , order = 'F' ) return ( idx , proj )
compute id of a real matrix to a specified rank using random matrix-vector multiplication .