Created
August 2, 2018 15:32
-
-
Save kangeugine/7078a58cdcc3839f71d58fb5a8db43b3 to your computer and use it in GitHub Desktop.
Revisions
-
kangeugine created this gist
Aug 2, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ def constraint_unique(x): n1 = x.size n2 = np.unique(to_int(x)).size return n1 - n2 # if constraint_unique(x) == 0, test passed