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