Esempio n. 1
0
def remainder(x, y):
    return Tensor.map2(x, y)
Esempio n. 2
0
def log(x, base):
    return Tensor.map2(x, base, _math.log)
Esempio n. 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)
Esempio n. 4
0
def ldexp(x, i):
    return Tensor.map2(x, i, _math.ldexp)
Esempio n. 5
0
def fmod(x, y):
    return Tensor.map2(x, y, _math.fmod)
Esempio n. 6
0
def gcd(a, b):
    return Tensor.map2(a, b, _math.gcd)
Esempio n. 7
0
def round(x, ndigits=None):
    return Tensor.map2(x, ndigits, _builtins.round)
Esempio n. 8
0
def copysign(x, y):
    return Tensor.map2(x, y, _math.copysign)
Esempio n. 9
0
def hypot(x, y):
    return Tensor.map2(x, y, _math.hypot)
Esempio n. 10
0
def atan2(x, y):
    return Tensor.map2(x, y, _math.atan2)
Esempio n. 11
0
def pow(x, y):
    return Tensor.map2(x, y, _math.pow)