コード例 #1
0
ファイル: test_systematic.py プロジェクト: cpehle/autograd
def test_op_pow(): binary_ufunc_check(op.pow, lims_A=[0.7, 2.0])



# Misc tests

R = npr.randn
コード例 #2
0
ファイル: test_systematic.py プロジェクト: ebresch/autograd
def test_op_pow(): binary_ufunc_check(op.pow, lims_A=[0.7, 2.0])



# Misc tests

def test_transpose(): combo_check(np.transpose, [0],
コード例 #3
0
def test_true_divide():
    binary_ufunc_check(np.true_divide, lims_B=[0.8, 1.2], test_complex=False)
コード例 #4
0
ファイル: test_systematic.py プロジェクト: cpehle/autograd
def test_op_div(): binary_ufunc_check(op.truediv, lims_B=[0.5, 2.0])
def test_op_pow(): binary_ufunc_check(op.pow, lims_A=[0.7, 2.0])
コード例 #5
0
ファイル: test_systematic.py プロジェクト: cpehle/autograd
def test_op_add(): binary_ufunc_check(op.add)
def test_op_sub(): binary_ufunc_check(op.sub)
コード例 #6
0
ファイル: test_systematic.py プロジェクト: cpehle/autograd
def test_true_divide_neg(): binary_ufunc_check(np.true_divide, lims_B=[-0.3, -2.0], test_complex=False)
def test_mod_neg(): binary_ufunc_check_no_same_args(np.mod,    lims_B=[-0.3, -2.0], test_complex=False)
コード例 #7
0
ファイル: test_systematic.py プロジェクト: cpehle/autograd
def test_logaddexp2(): binary_ufunc_check(np.logaddexp2, test_complex=False)
def test_remainder(): binary_ufunc_check_no_same_args(np.remainder, lims_A=[-0.9, 0.9], lims_B=[0.7, 1.9], test_complex=False)
コード例 #8
0
def test_op_div():
    binary_ufunc_check(op.truediv, lims_B=[0.5, 2.0])
コード例 #9
0
ファイル: test_systematic.py プロジェクト: vyraun/autograd
def test_nextafter():       binary_ufunc_check(np.nextafter, test_complex=False)
def test_remainder():       binary_ufunc_check_no_same_args(np.remainder, lims_A=[-0.9, 0.9], lims_B=[0.7, 1.9], test_complex=False)
コード例 #10
0
ファイル: test_systematic.py プロジェクト: vyraun/autograd
def test_copysign():        binary_ufunc_check(np.copysign, test_complex=False)
def test_nextafter():       binary_ufunc_check(np.nextafter, test_complex=False)
コード例 #11
0
ファイル: test_systematic.py プロジェクト: vyraun/autograd
def test_arctan2():         binary_ufunc_check(np.arctan2, test_complex=False)
def test_copysign():        binary_ufunc_check(np.copysign, test_complex=False)
コード例 #12
0
ファイル: test_systematic.py プロジェクト: vyraun/autograd
def test_hypot():           binary_ufunc_check(np.hypot, test_complex=False)
def test_arctan2():         binary_ufunc_check(np.arctan2, test_complex=False)
コード例 #13
0
ファイル: test_systematic.py プロジェクト: vyraun/autograd
def test_true_divide_neg(): binary_ufunc_check(np.true_divide, lims_B=[-0.9, -2.0], test_complex=False)
def test_hypot():           binary_ufunc_check(np.hypot, test_complex=False)
コード例 #14
0
ファイル: test_systematic.py プロジェクト: vyraun/autograd
def test_logaddexp2():      binary_ufunc_check(np.logaddexp2, test_complex=False)
def test_true_divide():     binary_ufunc_check(np.true_divide, lims_B=[0.3, 2.0], test_complex=False)
コード例 #15
0
ファイル: test_systematic.py プロジェクト: vyraun/autograd
def test_logaddexp():       binary_ufunc_check(np.logaddexp, test_complex=False)
def test_logaddexp2():      binary_ufunc_check(np.logaddexp2, test_complex=False)
コード例 #16
0
def test_add():
    binary_ufunc_check(np.add)
コード例 #17
0
def test_true_divide_neg():
    binary_ufunc_check(np.true_divide, lims_B=[-0.3, -2.0], test_complex=False)
コード例 #18
0
ファイル: test_systematic.py プロジェクト: vyraun/autograd
def test_op_mul():     binary_ufunc_check(op.mul)
def test_op_add():     binary_ufunc_check(op.add)
コード例 #19
0
def test_op_pow():
    binary_ufunc_check(op.pow, lims_A=[0.7, 2.0])
コード例 #20
0
ファイル: test_systematic.py プロジェクト: vyraun/autograd
def test_op_add():     binary_ufunc_check(op.add)
def test_op_sub():     binary_ufunc_check(op.sub)
コード例 #21
0
ファイル: test_systematic.py プロジェクト: cpehle/autograd
def test_logaddexp(): binary_ufunc_check(np.logaddexp, test_complex=False)
def test_logaddexp2(): binary_ufunc_check(np.logaddexp2, test_complex=False)
コード例 #22
0
ファイル: test_systematic.py プロジェクト: blutooth/gp-svi
def test_op_pow():     binary_ufunc_check(op.pow,     lims_A=[0.7, 2.0])
def test_op_mod():     binary_ufunc_check_no_same_args(op.mod, lims_B=[0.3, 2.0], test_complex=False)
コード例 #23
0
ファイル: test_systematic.py プロジェクト: cpehle/autograd
def test_true_divide(): binary_ufunc_check(np.true_divide, lims_B=[0.3, 2.0], test_complex=False)
def test_mod(): binary_ufunc_check_no_same_args(np.mod,    lims_B=[0.8, 2.1], test_complex=False)
コード例 #24
0
ファイル: test_systematic.py プロジェクト: ASAPPinc/autograd
def test_add(): binary_ufunc_check(np.add)
def test_logaddexp(): binary_ufunc_check(np.logaddexp)
コード例 #25
0
ファイル: test_systematic.py プロジェクト: cpehle/autograd
def test_op_mul(): binary_ufunc_check(op.mul)
def test_op_add(): binary_ufunc_check(op.add)
コード例 #26
0
ファイル: test_systematic.py プロジェクト: ASAPPinc/autograd
def test_logaddexp(): binary_ufunc_check(np.logaddexp)
def test_logaddexp2(): binary_ufunc_check(np.logaddexp2)
コード例 #27
0
ファイル: test_systematic.py プロジェクト: cpehle/autograd
def test_op_sub(): binary_ufunc_check(op.sub)
def test_op_mod(): binary_ufunc_check_no_same_args(op.mod, lims_B=[0.3, 2.0], test_complex=False)
コード例 #28
0
ファイル: test_systematic.py プロジェクト: ASAPPinc/autograd
def test_logaddexp2(): binary_ufunc_check(np.logaddexp2)

def test_op_mul(): binary_ufunc_check(op.mul)
コード例 #29
0
ファイル: test_systematic.py プロジェクト: ASAPPinc/autograd
def test_op_sub(): binary_ufunc_check(op.sub)
def test_op_div(): binary_ufunc_check(op.div, lims_B=[0.3, 2.0])
コード例 #30
0
def test_add():
    binary_ufunc_check(np.add)