Skip to content

vector.cosf

← vector dialect

Lanewise cosine in radians, with the same math contract as scalar.cosf.

Operation contract

Property Value
Semantic phase —
Traits Pure, Elementwise, SafeToSpeculate

Signature

Kind Name Type Cardinality Description
Operand input vector required —
Result result vector required —
Attribute math flags TrigonometryMathFlags optional —

Verification constraints

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

Examples

Note

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