Searched refs:copy_sign (Results 1 – 7 of 7) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_decimal.py | 1203 d = Decimal(1).copy_sign(Decimal(-2)) 1205 self.assertEqual(Decimal(1).copy_sign(-2), d) 1206 self.assertRaises(TypeError, Decimal(1).copy_sign, '-2') 1863 d = c.copy_sign(Decimal(1), Decimal(-2)) 1864 self.assertEqual(c.copy_sign(1, -2), d) 1865 self.assertEqual(c.copy_sign(Decimal(1), -2), d) 1866 self.assertEqual(c.copy_sign(1, Decimal(-2)), d) 1867 self.assertRaises(TypeError, c.copy_sign, '1', -2) 1868 self.assertRaises(TypeError, c.copy_sign, 1, '-2')
|
/external/python/cpython3/Lib/test/ |
D | test_decimal.py | 1490 d = Decimal(1).copy_sign(Decimal(-2)) 1491 self.assertEqual(Decimal(1).copy_sign(-2), d) 1492 self.assertRaises(TypeError, Decimal(1).copy_sign, '-2') 3027 d = c.copy_sign(Decimal(1), Decimal(-2)) 3028 self.assertEqual(c.copy_sign(1, -2), d) 3029 self.assertEqual(c.copy_sign(Decimal(1), -2), d) 3030 self.assertEqual(c.copy_sign(1, Decimal(-2)), d) 3031 self.assertRaises(TypeError, c.copy_sign, '1', -2) 3032 self.assertRaises(TypeError, c.copy_sign, 1, '-2') 4362 z = y.copy_sign(Decimal(1)) [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/hlo/include/mlir-hlo/Dialect/mhlo/transforms/ |
D | map_lmhlo_to_scalar_op.h | 749 Value copy_sign = 753 return b->create<::mlir::SelectOp>(loc, is_nan, args[0], copy_sign);
|
/external/python/cpython2/Lib/ |
D | decimal.py | 2924 def copy_sign(self, other): member in Decimal 3458 return self.copy_sign(other) 4160 def copy_sign(self, a, b): member in Context 4182 return a.copy_sign(b)
|
/external/python/cpython3/Lib/ |
D | _pydecimal.py | 3030 def copy_sign(self, other, context=None): member in Decimal 3564 return self.copy_sign(other) 4334 def copy_sign(self, a, b): member in Context 4356 return a.copy_sign(b)
|
/external/python/cpython2/Doc/library/ |
D | decimal.rst | 516 .. method:: copy_sign(other) 521 >>> Decimal('2.3').copy_sign(Decimal('-1.5')) 1196 .. method:: copy_sign(x, y)
|
/external/python/cpython3/Doc/library/ |
D | decimal.rst | 551 .. method:: copy_sign(other, context=None) 556 >>> Decimal('2.3').copy_sign(Decimal('-1.5')) 1173 .. method:: copy_sign(x, y)
|