Implementing kernel
C++ engine symbols that back this Python API.Element-wise IEEE 754 next representable floating-point value.
Returns the next floating-point value after input in the direction of other. When input == other the result is exactly other.
Parameters
Returns
TensorElement-wise result with shape broadcast(input.shape, other.shape) and
dtype determined by the usual type-promotion rules.
Notes
Mathematical definition:
Useful for tight numerical tolerances and stepping along the float lattice.
Examples
>>> import lucid
>>> a = lucid.tensor([1.0, 2.0, 3.0])
>>> b = lucid.tensor([4.0, 5.0, 6.0])
>>> lucid.nextafter(a, b)
Tensor([...])