Exemple #1
0
def remainder(x, y):
    return Tensor.map2(x, y)
Exemple #2
0
def log(x, base):
    return Tensor.map2(x, base, _math.log)
Exemple #3
0
def isclose(a, b, rel_tol=1e-09, abs_tol=0.0):
    _isclose = lambda a, b: _math.isclose(a, b, rel_tol=1e-09, abs_tol=0.0)
    return Tensor.map2(a, b, _isclose)
Exemple #4
0
def ldexp(x, i):
    return Tensor.map2(x, i, _math.ldexp)
Exemple #5
0
def fmod(x, y):
    return Tensor.map2(x, y, _math.fmod)
Exemple #6
0
def gcd(a, b):
    return Tensor.map2(a, b, _math.gcd)
Exemple #7
0
def round(x, ndigits=None):
    return Tensor.map2(x, ndigits, _builtins.round)
Exemple #8
0
def copysign(x, y):
    return Tensor.map2(x, y, _math.copysign)
Exemple #9
0
def hypot(x, y):
    return Tensor.map2(x, y, _math.hypot)
Exemple #10
0
def atan2(x, y):
    return Tensor.map2(x, y, _math.atan2)
Exemple #11
0
def pow(x, y):
    return Tensor.map2(x, y, _math.pow)