Skip to content

vector.roundf

vector dialect

Lanewise round to nearest, ties away from zero.

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.