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