Ejemplo n.º 1
0
def test_op_pow(): binary_ufunc_check(op.pow, lims_A=[0.7, 2.0])



# Misc tests

R = npr.randn
Ejemplo n.º 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],
Ejemplo n.º 3
0
def test_true_divide():
    binary_ufunc_check(np.true_divide, lims_B=[0.8, 1.2], test_complex=False)
Ejemplo n.º 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])
Ejemplo n.º 5
0
def test_op_add(): binary_ufunc_check(op.add)
def test_op_sub(): binary_ufunc_check(op.sub)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 8
0
def test_op_div():
    binary_ufunc_check(op.truediv, lims_B=[0.5, 2.0])
Ejemplo n.º 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)
Ejemplo n.º 10
0
def test_copysign():        binary_ufunc_check(np.copysign, test_complex=False)
def test_nextafter():       binary_ufunc_check(np.nextafter, test_complex=False)
Ejemplo n.º 11
0
def test_arctan2():         binary_ufunc_check(np.arctan2, test_complex=False)
def test_copysign():        binary_ufunc_check(np.copysign, test_complex=False)
Ejemplo n.º 12
0
def test_hypot():           binary_ufunc_check(np.hypot, test_complex=False)
def test_arctan2():         binary_ufunc_check(np.arctan2, test_complex=False)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 15
0
def test_logaddexp():       binary_ufunc_check(np.logaddexp, test_complex=False)
def test_logaddexp2():      binary_ufunc_check(np.logaddexp2, test_complex=False)
Ejemplo n.º 16
0
def test_add():
    binary_ufunc_check(np.add)
Ejemplo n.º 17
0
def test_true_divide_neg():
    binary_ufunc_check(np.true_divide, lims_B=[-0.3, -2.0], test_complex=False)
Ejemplo n.º 18
0
def test_op_mul():     binary_ufunc_check(op.mul)
def test_op_add():     binary_ufunc_check(op.add)
Ejemplo n.º 19
0
def test_op_pow():
    binary_ufunc_check(op.pow, lims_A=[0.7, 2.0])
Ejemplo n.º 20
0
def test_op_add():     binary_ufunc_check(op.add)
def test_op_sub():     binary_ufunc_check(op.sub)
Ejemplo n.º 21
0
def test_logaddexp(): binary_ufunc_check(np.logaddexp, test_complex=False)
def test_logaddexp2(): binary_ufunc_check(np.logaddexp2, test_complex=False)
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 24
0
def test_add(): binary_ufunc_check(np.add)
def test_logaddexp(): binary_ufunc_check(np.logaddexp)
Ejemplo n.º 25
0
def test_op_mul(): binary_ufunc_check(op.mul)
def test_op_add(): binary_ufunc_check(op.add)
Ejemplo n.º 26
0
def test_logaddexp(): binary_ufunc_check(np.logaddexp)
def test_logaddexp2(): binary_ufunc_check(np.logaddexp2)
Ejemplo n.º 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)
Ejemplo n.º 28
0
def test_logaddexp2(): binary_ufunc_check(np.logaddexp2)

def test_op_mul(): binary_ufunc_check(op.mul)
Ejemplo n.º 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])
Ejemplo n.º 30
0
def test_add():
    binary_ufunc_check(np.add)