Trait quaternion_core::FloatSimd
source · [−]pub trait FloatSimd<T> {
fn sum(q: Quaternion<T>) -> T;
fn add(a: Quaternion<T>, b: Quaternion<T>) -> Quaternion<T>;
fn sub(a: Quaternion<T>, b: Quaternion<T>) -> Quaternion<T>;
fn scale(s: T, q: Quaternion<T>) -> Quaternion<T>;
fn scale_add(s: T, a: Quaternion<T>, b: Quaternion<T>) -> Quaternion<T>;
fn hadamard(a: Quaternion<T>, b: Quaternion<T>) -> Quaternion<T>;
fn hadamard_add(
a: Quaternion<T>,
b: Quaternion<T>,
c: Quaternion<T>
) -> Quaternion<T>;
fn dot(a: Quaternion<T>, b: Quaternion<T>) -> T;
fn negate(q: Quaternion<T>) -> Quaternion<T>;
}
Expand description
Provides a SIMD implementation with the std::arch
module.