Struct hagane_simd::vector::double4
[−]
[src]
#[repr(C)] #[repr(simd)]pub struct double4(pub f64, pub f64, pub f64, pub f64);
Methods
impl double4
[src]
Trait Implementations
impl Vector for double4
[src]
type Scalar = f64
type Boolean = long4
type CharVector = char4
type ShortVector = short4
type IntVector = int4
type LongVector = long4
type UCharVector = uchar4
type UShortVector = ushort4
type UIntVector = uint4
type ULongVector = ulong4
type FloatVector = float4
type DoubleVector = double4
fn map_unary(self, f: &Fn(Self::Scalar) -> Self::Scalar) -> Self
fn map_binary(
self,
other: Self,
f: &Fn(Self::Scalar, Self::Scalar) -> Self::Scalar
) -> Self
self,
other: Self,
f: &Fn(Self::Scalar, Self::Scalar) -> Self::Scalar
) -> Self
fn reduce(
self,
f: &Fn(Self::Scalar, Self::Scalar) -> Self::Scalar
) -> Self::Scalar
self,
f: &Fn(Self::Scalar, Self::Scalar) -> Self::Scalar
) -> Self::Scalar
fn abs(self) -> Self
fn to_char_sat(self) -> char4
fn to_uchar_sat(self) -> uchar4
fn to_short_sat(self) -> short4
fn to_ushort_sat(self) -> ushort4
fn to_int_sat(self) -> int4
fn to_uint_sat(self) -> uint4
fn to_long_sat(self) -> long4
fn to_ulong_sat(self) -> ulong4
fn bitcast<T: Vector>(x: T) -> Self
fn broadcast(x: Self::Scalar) -> Self
fn extract(self, i: u32) -> Self::Scalar
fn replace(self, i: u32, value: Self::Scalar) -> Self
fn add_mul(self, a: Self, b: Self) -> Self
fn eq(self, other: Self) -> Self::Boolean
fn ne(self, other: Self) -> Self::Boolean
fn lt(self, other: Self) -> Self::Boolean
fn le(self, other: Self) -> Self::Boolean
fn gt(self, other: Self) -> Self::Boolean
fn ge(self, other: Self) -> Self::Boolean
fn max(self, other: Self) -> Self
fn min(self, other: Self) -> Self
fn clamp(self, min: Self, max: Self) -> Self
fn reduce_add(self) -> Self::Scalar
fn reduce_max(self) -> Self::Scalar
fn reduce_min(self) -> Self::Scalar
fn to_char(self) -> Self::CharVector
fn to_short(self) -> Self::ShortVector
fn to_int(self) -> Self::IntVector
fn to_long(self) -> Self::LongVector
fn to_uchar(self) -> Self::UCharVector
fn to_ushort(self) -> Self::UShortVector
fn to_uint(self) -> Self::UIntVector
fn to_ulong(self) -> Self::ULongVector
fn to_float(self) -> Self::FloatVector
fn to_double(self) -> Self::DoubleVector
fn to_boolean(self) -> Self::Boolean
impl Dot<double4> for double4
[src]
type DotProduct = f64
fn dot(self, other: Self) -> Self::DotProduct
impl Float for double4
[src]
type FloatScalar = f64
const SIGN_MASK: i64
SIGN_MASK: i64 = std::i64::MAX
fn copysign(self, magnitude: Self) -> Self
fn sign(self) -> Self
fn sqrt(self) -> Self
fn recip(self) -> Self
fn rsqrt(self) -> Self
fn fract(self) -> Self
fn ceil(self) -> Self
fn floor(self) -> Self
fn trunc(self) -> Self
fn mix(self, a: Self, b: Self) -> Self
fn step(self, a: Self) -> Self
fn smoothstep(self, a: Self, b: Self) -> Self
fn sin(self) -> Self
fn cos(self) -> Self
impl Geometry for double4
[src]
fn project(self, onto: Self) -> Self
fn length(self) -> Self::Scalar
fn length_squared(self) -> Self::Scalar
fn norm_one(self) -> Self::Scalar
fn norm_inf(self) -> Self::Scalar
fn distance(self, to: Self) -> Self::Scalar
fn distance_squared(self, to: Self) -> Self::Scalar
fn normalize(self) -> Self
fn reflect(self, n: Self) -> Self
fn refract(self, n: Self, eta: Self::Scalar) -> Self
impl Copy for double4
[src]
impl Clone for double4
[src]
fn clone(&self) -> double4
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for double4
[src]
impl Add<double4> for double4
[src]
type Output = Self
The resulting type after applying the +
operator
fn add(self, other: Self) -> Self
The method for the +
operator
impl Add<f64> for double4
[src]
type Output = Self
The resulting type after applying the +
operator
fn add(self, other: f64) -> Self
The method for the +
operator
impl Sub<double4> for double4
[src]
type Output = Self
The resulting type after applying the -
operator
fn sub(self, other: Self) -> Self
The method for the -
operator
impl Sub<f64> for double4
[src]
type Output = Self
The resulting type after applying the -
operator
fn sub(self, other: f64) -> Self
The method for the -
operator
impl Mul<double4> for double4
[src]
type Output = Self
The resulting type after applying the *
operator
fn mul(self, other: Self) -> Self
The method for the *
operator
impl Mul<f64> for double4
[src]
type Output = Self
The resulting type after applying the *
operator
fn mul(self, other: f64) -> Self
The method for the *
operator
impl Div<double4> for double4
[src]
type Output = Self
The resulting type after applying the /
operator
fn div(self, other: Self) -> Self
The method for the /
operator
impl Div<f64> for double4
[src]
type Output = Self
The resulting type after applying the /
operator
fn div(self, other: f64) -> Self
The method for the /
operator
impl Neg for double4
[src]
type Output = Self
The resulting type after applying the -
operator
fn neg(self) -> Self
The method for the unary -
operator
impl PartialEq for double4
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Self) -> bool
This method tests for !=
.