Skip to content

scalar.log1pf

← scalar dialect

Natural logarithm of 1+x: ln(1+x) (numerically stable near 0).

Operation contract

Property Value
Semantic phase executable
Traits Pure

Signature

Kind Name Type Cardinality Description
Operand input float required —
Result result float required —
Attribute fastmath flags FastMathFlags optional —

Verification constraints

  • SameType(input, result)

Examples

%result = scalar.log1pf %input : f32