SimdF64

Trait SimdF64 

Source
pub trait SimdF64 {
    // Required methods
    fn simd_add(self, other: f64) -> f64;
    fn simd_sub(self, other: f64) -> f64;
    fn simd_mul(self, other: f64) -> f64;
    fn simd_scalar_mul(view: &ArrayView1<'_, f64>, scalar: f64) -> Array1<f64>;
    fn simd_add_arrays(
        a: &ArrayView1<'_, f64>,
        b: &ArrayView1<'_, f64>,
    ) -> Array1<f64>;
    fn simd_sub_arrays(
        a: &ArrayView1<'_, f64>,
        b: &ArrayView1<'_, f64>,
    ) -> Array1<f64>;
    fn simd_mul_arrays(
        a: &ArrayView1<'_, f64>,
        b: &ArrayView1<'_, f64>,
    ) -> Array1<f64>;
    fn simd_sum(slice: &[f64]) -> f64;
    fn simd_sum_array(a: &ArrayView1<'_, f64>) -> f64;
}
Expand description

Trait for SIMD operations on f64

Required Methods§

Source

fn simd_add(self, other: f64) -> f64

Source

fn simd_sub(self, other: f64) -> f64

Source

fn simd_mul(self, other: f64) -> f64

Source

fn simd_scalar_mul(view: &ArrayView1<'_, f64>, scalar: f64) -> Array1<f64>

Source

fn simd_add_arrays( a: &ArrayView1<'_, f64>, b: &ArrayView1<'_, f64>, ) -> Array1<f64>

Source

fn simd_sub_arrays( a: &ArrayView1<'_, f64>, b: &ArrayView1<'_, f64>, ) -> Array1<f64>

Source

fn simd_mul_arrays( a: &ArrayView1<'_, f64>, b: &ArrayView1<'_, f64>, ) -> Array1<f64>

Source

fn simd_sum(slice: &[f64]) -> f64

Source

fn simd_sum_array(a: &ArrayView1<'_, f64>) -> f64

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SimdF64 for f64

Source§

fn simd_add(self, other: f64) -> f64

Source§

fn simd_sub(self, other: f64) -> f64

Source§

fn simd_mul(self, other: f64) -> f64

Source§

fn simd_scalar_mul(view: &ArrayView1<'_, f64>, scalar: f64) -> Array1<f64>

Source§

fn simd_add_arrays( a: &ArrayView1<'_, f64>, b: &ArrayView1<'_, f64>, ) -> Array1<f64>

Source§

fn simd_sub_arrays( a: &ArrayView1<'_, f64>, b: &ArrayView1<'_, f64>, ) -> Array1<f64>

Source§

fn simd_mul_arrays( a: &ArrayView1<'_, f64>, b: &ArrayView1<'_, f64>, ) -> Array1<f64>

Source§

fn simd_sum(slice: &[f64]) -> f64

Source§

fn simd_sum_array(a: &ArrayView1<'_, f64>) -> f64

Implementors§