def test_random_hundred_matrix(): random.seed(100) A = np.empty((100, 100)) for i in range(100): for j in range(100): A[i][j] = random.randrange(100) checkanswer.basic(A, "d0510719f5e646a51379c72269e94d2d")
def test_float_hundred_matrix(): random.seed(100) A = np.empty((100, 100)) for i in range(100): for j in range(100): A[i][j] = random.random() checkanswer.basic(A, "9d9493537ead212c66cd4a77dedcaec4")
def test_random_bigger_matrix(): random.seed(50) A = np.empty((50, 50)) for i in range(50): for j in range(50): A[i][j] = random.randrange(100) checkanswer.basic(A, "5894d08ef2dfc6b7c9be2049f6459d29")
def test_float_bigger_matrix(): random.seed(50) A = np.empty((50, 50)) for i in range(50): for j in range(50): A[i][j] = random.random() # print(A) checkanswer.basic(A, "a7e01c1536cb00232f3288f283a5f93f")
def test_float_big_matrix(): random.seed(20) A = np.empty((20, 20)) for i in range(20): for j in range(20): A[i][j] = random.random() # print(A) checkanswer.basic(A, "51147d5263bc91ed2822f3b6455e2d85")
def test_random_big_matrix(): random.seed(20) A = np.empty((20, 20)) for i in range(20): for j in range(20): A[i][j] = random.randrange(100) # print(A) checkanswer.basic(A, "d19091cc42cf6db5f8e09d7564020b89")
def test_float_diagonal_fromzeros_matrix(): random.seed(200) A = np.zeros((100, 100)) for i in range(100): A[i][i] = random.random() checkanswer.basic(A, "4bb7fffaab2310b50b28c65fd3909b34")
def test_big_np_diag_matrix(): random.seed(400) random_list = [random.random() for i in range(80)] A = np.diag(random_list) checkanswer.basic(A, "28e092a7de0b446c0eeff65e14a9a297")
def test_np_diag_matrix(): random.seed(400) random_list = [random.random() for i in range(30)] A = np.diag(random_list) checkanswer.basic(A, "7614e2daaf3df99dbb48b02ada83ef9a")