コード例 #1
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)
コード例 #2
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)
コード例 #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)
コード例 #4
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)
コード例 #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)
コード例 #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)
コード例 #7
0
ファイル: test_sum.py プロジェクト: iskandr/parakeet
def test_sum_rows():
    expect_each(sum_rows, lambda X: np.sum(X, axis=1), matrices)
コード例 #8
0
def test_add1_internal_map_matrices():
  expect_each(add1_map, add1_scalar, matrices)
コード例 #9
0
ファイル: test_sum.py プロジェクト: iskandr/parakeet
def test_each_sum():
    expect_each(each_sum, lambda X: np.sum(X, axis=1), matrices)
コード例 #10
0
ファイル: test_sum.py プロジェクト: iskandr/parakeet
def test_col_sum():
    expect_each(sum_cols, lambda X: np.sum(X, axis=0), matrices)
コード例 #11
0
def test_multiple_slices():
  x = np.random.randn(10,10)
  expect_each(jit(multiple_slices), multiple_slices, matrices)
コード例 #12
0
def test_lower_right_corner():
  expect_each(jit(lower_right_corner), lower_right_corner, matrices)
コード例 #13
0
def test_diff_y():
    expect_each(diff_x, diff_x, matrices)
コード例 #14
0
def test_harris():
    expect_each(harris, harris, matrices)
コード例 #15
0
ファイル: test_sum.py プロジェクト: iskandr/parakeet
def test_sum_elts():
    expect_each(np.sum, np.sum, matrices)
コード例 #16
0
def test_add1_internal_map_vecs():
  expect_each(add1_map, add1_scalar, vecs)
コード例 #17
0
ファイル: test_sum.py プロジェクト: Abramovuch/parakeet
def test_each_sum():
  expect_each(each_sum, lambda X: np.sum(X, axis=1), matrices)
コード例 #18
0
def test_harris():
  expect_each(harris, harris, matrices)
コード例 #19
0
ファイル: test_sum.py プロジェクト: Abramovuch/parakeet
def test_col_sum():
  expect_each(sum_cols, lambda X: np.sum(X, axis=0), matrices)
コード例 #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)
コード例 #21
0
ファイル: test_sum.py プロジェクト: Abramovuch/parakeet
def test_sum_rows():
  expect_each(sum_rows, lambda X: np.sum(X, axis=1), matrices)
コード例 #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)
コード例 #23
0
ファイル: test_sum.py プロジェクト: Abramovuch/parakeet
def test_sum_elts():
  expect_each(np.sum, np.sum, matrices)
コード例 #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)
コード例 #25
0
ファイル: test_scan.py プロジェクト: Tillsten/parakeet
def test_scan_add_1d():
  expect_each(running_sum, np.cumsum, [int_1d, float_1d])
コード例 #26
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)
コード例 #27
0
ファイル: test_scan.py プロジェクト: Tillsten/parakeet
def test_scan_add_2d():
  expect_each(running_sum, loop_row_sums, [int_2d, float_2d])
コード例 #28
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)
コード例 #29
0
def test_scan_add_1d():
    expect_each(running_sum, np.cumsum, [int_1d, float_1d])
コード例 #30
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)
コード例 #31
0
ファイル: test_2d_diff.py プロジェクト: Abramovuch/parakeet
def test_diff_y():
  expect_each(diff_x, diff_x, matrices)