def _areAllSDRsUnique(sdrDict):
 for (k1, v1) in sdrDict.iteritems():
  for (k2, v2) in sdrDict.iteritems():
   if ((k2 != k1) and ((v1 == v2).sum() == v1.size)):
    return False
 return True

def _areAllSDRsUnique ( sdrDict ) : for ( k1 , v1 ) in sdrDict . iteritems ( ) : for ( k2 , v2 ) in sdrDict . iteritems ( ) : if ( ( k2 != k1 ) and ( ( v1 == v2 ) . sum ( ) == v1 . size ) ) : return False return True
return true iff all the sdrs in the dict are unique .