Skip to main content

sin

Function sin 

Source
pub fn sin<T, D>(input: &Array<T, D>) -> Result<Array<T, D>, FerrayError>
where T: Element + Float, D: Dimension,
Expand description

Elementwise sine.

Routes through Float::sin (libm) for ~2.4× faster per-element throughput vs core-math at all sizes — matching NumPy’s libm-based path. Accuracy is libm’s standard ~1 ULP, well within the 256-ULP tolerance bands used by ferray’s statistical equivalence harness. For correctly-rounded results call cr_math::CrMath::cr_sin directly.