Struct Vector

Source
#[repr(C)]
pub struct Vector<S: Simd, T: Scalar> { /* private fields */ }

Implementations§

Source§

impl<S: Simd, T: VMulAdd> Vector<S, T>

Source

pub fn mul_add(self, b: Self, c: Self) -> Self

Source§

impl<S: Simd, T: VEq> Vector<S, T>

Source

pub fn eq(self, other: Self) -> T::Mask<S>

Source§

impl<S: Simd, T: VOrd> Vector<S, T>

Source

pub fn lt(self, b: Self) -> T::Mask<S>

Apply elementwise PartialOrd::lt on two vectors

Source

pub fn le(self, b: Self) -> T::Mask<S>

Apply elementwise PartialOrd::le on two vectors

Source

pub fn gt(self, b: Self) -> T::Mask<S>

Apply elementwise PartialOrd::gt on two vectors

Source

pub fn ge(self, b: Self) -> T::Mask<S>

Apply elementwise PartialOrd::ge on two vectors

Source

pub fn min(self, b: Self) -> Self

Apply elementwise Ord::min to two vectors

Source

pub fn max(self, b: Self) -> Self

Apply elementwise Ord::max on two vectors

Source§

impl<S: Simd, T: VRecip> Vector<S, T>

Source

pub fn recip(self) -> Self

Source§

impl<S: Simd, T: VAbs> Vector<S, T>

Source

pub fn abs(self) -> Self

Trait Implementations§

Source§

impl<S: Simd, T: VAdd> Add for Vector<S, T>

Source§

type Output = Vector<S, T>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<S: Simd, T: VAdd> AddAssign for Vector<S, T>

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl<S: Simd, T: VBitAnd> BitAnd for Vector<S, T>

Source§

type Output = Vector<S, T>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl<S: Simd, T: VBitAnd> BitAndAssign for Vector<S, T>

Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl<S: Simd, T: VBitOr> BitOr for Vector<S, T>

Source§

type Output = Vector<S, T>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
Source§

impl<S: Simd, T: VBitOr> BitOrAssign for Vector<S, T>

Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl<S: Simd, T: VBitXor> BitXor for Vector<S, T>

Source§

type Output = Vector<S, T>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<S: Simd, T: VBitXor> BitXorAssign for Vector<S, T>

Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl<S: Simd, T: Scalar> Clone for Vector<S, T>

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<S: Simd, T: Scalar> Debug for Vector<S, T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<S: Simd, T: Scalar> Deref for Vector<S, T>

Source§

type Target = <S as Simd>::Register

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<S: Simd, T: VDiv> Div for Vector<S, T>

Source§

type Output = Vector<S, T>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl<S: Simd, T: VDiv> DivAssign for Vector<S, T>

Source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
Source§

impl<S: Simd, T: VMul> Mul for Vector<S, T>

Source§

type Output = Vector<S, T>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl<S: Simd, T: VMul> MulAssign for Vector<S, T>

Source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
Source§

impl<S: Simd, T: VBitNot> Not for Vector<S, T>

Source§

type Output = Vector<S, T>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl<S: Simd, T: VSub> Sub for Vector<S, T>

Source§

type Output = Vector<S, T>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<S: Simd, T: VSub> SubAssign for Vector<S, T>

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl<S: Simd, T: Scalar> Zeroable for Vector<S, T>

Source§

fn zeroed() -> Self

Source§

impl<S: Simd, T: Scalar> Copy for Vector<S, T>

Source§

impl<S: Simd, T: Scalar> Pod for Vector<S, T>

Auto Trait Implementations§

§

impl<S, T> Freeze for Vector<S, T>
where <S as Simd>::Register: Freeze,

§

impl<S, T> RefUnwindSafe for Vector<S, T>

§

impl<S, T> Send for Vector<S, T>
where <S as Simd>::Register: Send, T: Send,

§

impl<S, T> Sync for Vector<S, T>
where <S as Simd>::Register: Sync, T: Sync,

§

impl<S, T> Unpin for Vector<S, T>
where <S as Simd>::Register: Unpin, T: Unpin,

§

impl<S, T> UnwindSafe for Vector<S, T>
where <S as Simd>::Register: UnwindSafe, T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

Source§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
Source§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> AnyBitPattern for T
where T: Pod,

Source§

impl<T> NoUninit for T
where T: Pod,