Skip to content

vector.negf

vector dialect

Lanewise floating-point negation of a same-typed vector operand.

Operation contract

Property Value
Semantic phase executable
Traits Pure, Elementwise, Involution

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.