R/primitives.R
prim_tan.Rd
Element-wise tangent.
prim_tan(x)
(arrayish) Arrayish value of data type floating-point.
arrayish
arrayish Has the same shape and data type as the input. It is ambiguous if the input is ambiguous.
stablehlo
quickr
reverse
Lowers to hlo_tan().
hlo_tan()
nv_tan(), tan()
nv_tan()
tan()
x <- nv_array(c(0, 0.5, 1)) prim_tan(x) #> AnvlArray #> 0.0000 #> 0.5463 #> 1.5574 #> [ CPUf32{3} ]