示例#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)