Пример #1
0
def test_op_pow(): binary_ufunc_check(op.pow, lims_A=[0.7, 2.0])



# Misc tests

R = npr.randn
Пример #2
0
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
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
def test_op_add(): binary_ufunc_check(op.add)
def test_op_sub(): binary_ufunc_check(op.sub)
Пример #6
0
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
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
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
def test_copysign():        binary_ufunc_check(np.copysign, test_complex=False)
def test_nextafter():       binary_ufunc_check(np.nextafter, test_complex=False)
Пример #11
0
def test_arctan2():         binary_ufunc_check(np.arctan2, test_complex=False)
def test_copysign():        binary_ufunc_check(np.copysign, test_complex=False)
Пример #12
0
def test_hypot():           binary_ufunc_check(np.hypot, test_complex=False)
def test_arctan2():         binary_ufunc_check(np.arctan2, test_complex=False)
Пример #13
0
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
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
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
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
def test_op_add():     binary_ufunc_check(op.add)
def test_op_sub():     binary_ufunc_check(op.sub)
Пример #21
0
def test_logaddexp(): binary_ufunc_check(np.logaddexp, test_complex=False)
def test_logaddexp2(): binary_ufunc_check(np.logaddexp2, test_complex=False)
Пример #22
0
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
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
def test_add(): binary_ufunc_check(np.add)
def test_logaddexp(): binary_ufunc_check(np.logaddexp)
Пример #25
0
def test_op_mul(): binary_ufunc_check(op.mul)
def test_op_add(): binary_ufunc_check(op.add)
Пример #26
0
def test_logaddexp(): binary_ufunc_check(np.logaddexp)
def test_logaddexp2(): binary_ufunc_check(np.logaddexp2)
Пример #27
0
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
def test_logaddexp2(): binary_ufunc_check(np.logaddexp2)

def test_op_mul(): binary_ufunc_check(op.mul)
Пример #29
0
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)