def iddr_id(A, k):
 A = np.asfortranarray(A)
 (idx, rnorms) = _id.iddr_id(A, k)
 n = A.shape[1]
 proj = A.T.ravel()[:(k * (n - k))].reshape((k, (n - k)), order='F')
 return (idx, proj)

def iddr_id ( A , k ) : A = np . asfortranarray ( A ) ( idx , rnorms ) = _id . iddr_id ( A , k ) n = A . shape [ 1 ] proj = A . T . ravel ( ) [ : ( k * ( n - k ) ) ] . reshape ( ( k , ( n - k ) ) , order = 'F' ) return ( idx , proj )
compute id of a real matrix to a specified rank .