def idzr_aid(A, k):
 A = np.asfortranarray(A)
 (m, n) = A.shape
 w = idzr_aidi(m, n, k)
 (idx, proj) = _id.idzr_aid(A, k, w)
 if (k == n):
  proj = np.array([], dtype='complex128', order='F')
 else:
  proj = proj.reshape((k, (n - k)), order='F')
 return (idx, proj)

def idzr_aid ( A , k ) : A = np . asfortranarray ( A ) ( m , n ) = A . shape w = idzr_aidi ( m , n , k ) ( idx , proj ) = _id . idzr_aid ( A , k , w ) if ( k == n ) : proj = np . array ( [ ] , dtype = 'complex128' , order = 'F' ) else : proj = proj . reshape ( ( k , ( n - k ) ) , order = 'F' ) return ( idx , proj )
compute id of a complex matrix to a specified rank using random sampling .