jax.lax.sin#
- jax.lax.sin(x, accuracy=None)[source]#
Elementwise sine: \(\mathrm{sin}(x)\).
For floating-point inputs, this function lowers directly to the stablehlo.sine operation. For complex inputs, it lowers to a sequence of HLO operations implementing the complex sine.
- Parameters:
x (ArrayLike) – input array. Must have floating-point or complex type.
accuracy – Optional lax.Tolerance or lax.AccuracyMode object that selects the implementation of the op based on the requested accuracy. If the implementation cannot satisfy the requested tolerance, the compiler will return an error. If mode is specified and there are no multiple implementations available, the default implementation will be used.
- Returns:
Array of the same shape and dtype as
x
containing the element-wise sine.- Return type:
See also
jax.lax.cos()
: elementwise cosine.jax.lax.tan()
: elementwise tangent.jax.lax.asin()
: elementwise arc sine.