numojo.routines.math.floating¶
Floating-point routines for NuMojo (numojo.routines.math.floating).
Offers floating-point specific utilities such as copysign on NDArrays.
Functions¶
copysign¶
copysign[dtype: DType, backend: Backend = Vectorized](array1: NDArray[dtype], array2: NDArray[dtype]) -> NDArray[dtype]
Copy the sign of the first NDArray and apply it to the second NDArray.
Constraints
Both arrays must have the same shapes.
Parameters:
dtype(DType): The element type.backend(Backend): Sets utility function origin, defaults toVectorized.
Args:
array1(NDArray): A NDArray.array2(NDArray): A NDArray.
Returns:
NDArray
Raises