def test_tanh():
  expect_each(parakeet.tanh, np.tanh, xs)
  expect_each(math.tanh, np.tanh, xs)
  expect_each(np.tanh, np.tanh, xs)
def test_exp():
  expect_each(parakeet.exp, np.exp, xs)
  expect_each(math.exp, np.exp, xs)
  expect_each(np.exp, np.exp, xs)
Example #3
0
def test_exp():
    expect_each(parakeet.exp, np.exp, xs)
    expect_each(math.exp, np.exp, xs)
    expect_each(np.exp, np.exp, xs)
def test_parakeet_sinh():
  expect_each(parakeet.sinh, np.sinh, xs)
  expect_each(math.sinh, np.sinh, xs)
  expect_each(np.sinh, np.sinh, xs)
Example #5
0
def test_parakeet_sinh():
    expect_each(parakeet.sinh, np.sinh, xs)
    expect_each(math.sinh, np.sinh, xs)
    expect_each(np.sinh, np.sinh, xs)
Example #6
0
def test_tanh():
    expect_each(parakeet.tanh, np.tanh, xs)
    expect_each(math.tanh, np.tanh, xs)
    expect_each(np.tanh, np.tanh, xs)
Example #7
0
def test_sum_rows():
    expect_each(sum_rows, lambda X: np.sum(X, axis=1), matrices)
Example #8
0
def test_add1_internal_map_matrices():
  expect_each(add1_map, add1_scalar, matrices)
Example #9
0
def test_each_sum():
    expect_each(each_sum, lambda X: np.sum(X, axis=1), matrices)
Example #10
0
def test_col_sum():
    expect_each(sum_cols, lambda X: np.sum(X, axis=0), matrices)
Example #11
0
def test_multiple_slices():
  x = np.random.randn(10,10)
  expect_each(jit(multiple_slices), multiple_slices, matrices)
Example #12
0
def test_lower_right_corner():
  expect_each(jit(lower_right_corner), lower_right_corner, matrices)
Example #13
0
def test_diff_y():
    expect_each(diff_x, diff_x, matrices)
Example #14
0
def test_harris():
    expect_each(harris, harris, matrices)
Example #15
0
def test_sum_elts():
    expect_each(np.sum, np.sum, matrices)
Example #16
0
def test_add1_internal_map_vecs():
  expect_each(add1_map, add1_scalar, vecs)
Example #17
0
def test_each_sum():
  expect_each(each_sum, lambda X: np.sum(X, axis=1), matrices)
Example #18
0
def test_harris():
  expect_each(harris, harris, matrices)
Example #19
0
def test_col_sum():
  expect_each(sum_cols, lambda X: np.sum(X, axis=0), matrices)
Example #20
0
def test_cosh():
    expect_each(parakeet.cosh, np.cosh, xs)
    expect_each(math.cosh, np.cosh, xs)
    expect_each(np.cosh, np.cosh, xs)
Example #21
0
def test_sum_rows():
  expect_each(sum_rows, lambda X: np.sum(X, axis=1), matrices)
Example #22
0
def test_log10():
    expect_each(parakeet.log10, np.log10, xs)
    expect_each(math.log10, np.log10, xs)
    expect_each(np.log10, np.log10, xs)
Example #23
0
def test_sum_elts():
  expect_each(np.sum, np.sum, matrices)
Example #24
0
def test_sin():
    expect_each(parakeet.sin, np.sin, xs)
    expect_each(math.sin, math.sin, xs)
    expect_each(np.sin, np.sin, xs)
Example #25
0
def test_scan_add_1d():
  expect_each(running_sum, np.cumsum, [int_1d, float_1d])
def test_cosh():
  expect_each(parakeet.cosh, np.cosh, xs)
  expect_each(math.cosh, np.cosh, xs)
  expect_each(np.cosh, np.cosh, xs)
Example #27
0
def test_scan_add_2d():
  expect_each(running_sum, loop_row_sums, [int_2d, float_2d])
def test_log10():
  expect_each(parakeet.log10, np.log10, xs)
  expect_each(math.log10, np.log10, xs)
  expect_each(np.log10, np.log10, xs)
Example #29
0
def test_scan_add_1d():
    expect_each(running_sum, np.cumsum, [int_1d, float_1d])
def test_sin():
  expect_each(parakeet.sin, np.sin, xs)
  expect_each(math.sin, math.sin, xs)
  expect_each(np.sin, np.sin, xs)
Example #31
0
def test_diff_y():
  expect_each(diff_x, diff_x, matrices)