Skip to contents

Element-wise sine. You can also use sin().

Usage

nv_sine(operand)

Arguments

operand

(tensorish)
Operand.

Value

tensorish
Has the same shape and data type as the input.

See also

nvl_sine() for the underlying primitive.

Examples

jit_eval({
  x <- nv_tensor(c(0, pi / 2, pi))
  sin(x)
})
#> AnvilTensor
#>   0.0000e+00
#>   1.0000e+00
#>  -8.7423e-08
#> [ CPUf32{3} ]