Skip to content

vector.absf

vector dialect

Lanewise floating-point absolute value of a same-typed vector operand.

Operation contract

Property Value
Semantic phase
Traits Pure, Elementwise, Idempotent

Signature

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

Verification constraints

  • HasFloatElement(result)
  • SameType(input, result)

Examples

Note

A canonical source example has not been added for this operation yet.