Skip to content

vector.copysignf

← vector dialect

Lanewise copy sign of rhs lanes onto lhs lane magnitudes.

Operation contract

Property Value
Semantic phase —
Traits Pure, Elementwise

Signature

Kind Name Type Cardinality Description
Operand lhs vector required —
Operand rhs vector required —
Result result vector required —
Attribute fastmath flags FastMathFlags optional —

Verification constraints

  • HasFloatElement(result)
  • SameType(lhs, rhs, result)

Examples

Note

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