Rust port of [Sleef] math library based on Portable SIMD Vectors a.k.a. core::simd
Requires nightly feature portable_simd
.
You can call math functions directly: ```rust
use core::simd::f64x2;
fn main() { let input = f64x2::fromarray([1.43, 0.57]); let output = sleef::f64x::sinu10(input); println!("sin(α) = {:?}", output); } ```
or use Sleef
trait:
```rust
use core::simd::f64x2; use sleef::Sleef;
fn main() { let input = f64x2::from_array([1.43, 0.57]); let output = f64x::sin(input); println!("sin(α) = {:?}", output); } ```