Mojo function
log1p
log1p[dtype: DType, width: Int, //](x: SIMD[dtype, width]) -> SIMD[dtype, width]
Computes the log1p of the inputs.
The log1p(x) is equivalent to log(1+x).
Constraints:
The input must be a floating-point type.
Parameters:
- โdtype (
DType): Thedtypeof the input and output SIMD vector. - โwidth (
Int): The width of the input and output SIMD vector.
Args:
- โx (
SIMD): The input argument.
Returns:
SIMD: The log1p of the input.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!