Struct vrl::Vec8f

source ·
pub struct Vec8f(/* private fields */);

Trait Implementations§

source§

impl Add<Vec8f> for f32

§

type Output = Vec8f

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add<f32> for Vec8f

§

type Output = Vec8f

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl Add for Vec8f

§

type Output = Vec8f

The resulting type after applying the + operator.
source§

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

Performs the + operation. Read more
source§

impl<T> AddAssign<T> for Vec8f
where Self: Add<T, Output = Self>,

source§

fn add_assign(&mut self, rhs: T)

Performs the += operation. Read more
source§

impl Clone for Vec8f

source§

fn clone(&self) -> Vec8f

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 Debug for Vec8f

source§

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

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

impl Default for Vec8f

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Div<Vec8f> for f32

§

type Output = Vec8f

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div<f32> for Vec8f

§

type Output = Vec8f

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl Div for Vec8f

§

type Output = Vec8f

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl<T> DivAssign<T> for Vec8f
where Self: Div<T, Output = Self>,

source§

fn div_assign(&mut self, rhs: T)

Performs the /= operation. Read more
source§

impl From<&[f32; 8]> for Vec8f

source§

fn from(value: &[f32; 8]) -> Self

Does same as load.

source§

impl From<&Vec8f> for [f32; 8]

source§

fn from(value: &Vec8f) -> Self

Converts to this type from the input type.
source§

impl From<[f32; 8]> for Vec8f

source§

fn from(value: [f32; 8]) -> Self

Converts to this type from the input type.
source§

impl From<(Vec4f, Vec4f)> for Vec8f

source§

fn from((low, high): (Vec4f, Vec4f)) -> Self

Does same as join.

source§

impl From<Vec8f> for [f32; 8]

source§

fn from(value: Vec8f) -> Self

Converts to this type from the input type.
source§

impl From<Vec8f> for (Vec4f, Vec4f)

source§

fn from(vec: Vec8f) -> (Vec4f, Vec4f)

Does same as split.

source§

impl From<Vec8f> for __m256

source§

fn from(original: Vec8f) -> Self

Converts to this type from the input type.
source§

impl From<__m256> for Vec8f

source§

fn from(original: __m256) -> Vec8f

Converts to this type from the input type.
source§

impl Index<usize> for Vec8f

§

type Output = f32

The returned type after indexing.
source§

fn index(&self, index: usize) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl IndexMut<usize> for Vec8f

source§

fn index_mut(&mut self, index: usize) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
source§

impl Mul<Vec8f> for f32

§

type Output = Vec8f

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul<f32> for Vec8f

§

type Output = Vec8f

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl Mul for Vec8f

§

type Output = Vec8f

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl<T> MulAssign<T> for Vec8f
where Self: Mul<T, Output = Self>,

source§

fn mul_assign(&mut self, rhs: T)

Performs the *= operation. Read more
source§

impl Neg for Vec8f

§

type Output = Vec8f

The resulting type after applying the - operator.
source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
source§

impl PartialEq for Vec8f

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Product for Vec8f

source§

fn product<I: Iterator<Item = Self>>(iter: I) -> Self

Method which takes an iterator and generates Self from the elements by multiplying the items.
source§

impl SIMDBase<8> for Vec8f

§

type Underlying = __m256

Underlying intrinsic type or tuple of types.
§

type Element = f32

Type of a single element of packed vector.
source§

fn broadcast(value: f32) -> Self

Initializes all values of returned vector with a given value. Read more
source§

unsafe fn load_ptr(addr: *const f32) -> Self

Loads vector from an array pointed by addr. addr is not required to be aligned. Read more
source§

unsafe fn store_ptr(self, addr: *mut Self::Element)

Stores vector into array at given address. Read more
source§

fn sum(self) -> Self::Element

Calculates the sum of all elements of vector. Read more
source§

const N: usize = N

Number of elements in vector.
source§

fn load(data: &[Self::Element; N]) -> Self

Loads vector from a given array. Read more
source§

fn load_checked(data: &[Self::Element]) -> Self

Checks that data contains exactly N elements and loads them into vector. Read more
source§

fn load_prefix(data: &[Self::Element]) -> Self

Loads first N elements of data into vector. Read more
source§

fn store(self, array: &mut [Self::Element; N])

Stores vector into given array.
source§

fn store_checked(self, slice: &mut [Self::Element])

Checks that slice contains exactly N elements and stores elements of vector there. Read more
source§

fn store_prefix(self, slice: &mut [Self::Element])

Stores elements of the vector into prefix of slice. Read more
source§

fn extract(self, index: usize) -> Self::Element

Extracts index-th element of the vector. Index 0 corresponds to the “most left” element. Read more
source§

fn extract_wrapping(self, index: usize) -> Self::Element

Extracts index % N-th element of the vector. This corresponds to the original extract function from VCL. Read more
source§

fn extract_const<const INDEX: i32>(self) -> Self::Element

Extracts INDEX-th element of the vector. Does same as extract with compile-time known index. Read more
source§

impl SIMDFloat for Vec8f

source§

fn round(self) -> Self

Rounds values of the vector to the nearest integers. In case of two integers are equally close (i.e. fractional part of a number equals 0.5) the behavior depends on platform. Read more
source§

impl SIMDPartialLoad<f32> for Vec8f

source§

fn load_partial(data: &[f32]) -> Self

Loads first min(N, data.len()) elements of data into vector. Read more
source§

impl SIMDPartialStore<f32> for Vec8f

source§

fn store_partial(&self, slice: &mut [f32])

Stores min(N, slice.len()) elements of vector into prefix of slice. Read more
source§

impl Sub<Vec8f> for f32

§

type Output = Vec8f

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub<f32> for Vec8f

§

type Output = Vec8f

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl Sub for Vec8f

§

type Output = Vec8f

The resulting type after applying the - operator.
source§

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

Performs the - operation. Read more
source§

impl<T> SubAssign<T> for Vec8f
where Self: Sub<T, Output = Self>,

source§

fn sub_assign(&mut self, rhs: T)

Performs the -= operation. Read more
source§

impl Sum for Vec8f

source§

fn sum<I: Iterator<Item = Self>>(iter: I) -> Self

Method which takes an iterator and generates Self from the elements by “summing up” the items.
source§

impl Vec8fBase for Vec8f

source§

fn new( v0: f32, v1: f32, v2: f32, v3: f32, v4: f32, v5: f32, v6: f32, v7: f32 ) -> Self

Initializes elements of returned vector with given values. Read more
source§

fn join(low: Vec4f, high: Vec4f) -> Self

Joins two Vec4f into a single Vec8f. The first four elements of returned vector are elements of a and the last four elements are elements of b. Read more
source§

fn low(self) -> Vec4f

Returns the first four elements of vector. Read more
source§

fn high(self) -> Vec4f

Returns the last four elements of vector. Read more
source§

unsafe fn load_ptr_aligned(addr: *const f32) -> Self

Loads vector from aligned array pointed by addr. Read more
source§

unsafe fn store_ptr_aligned(self, addr: *mut f32)

Stores vector into aligned array at given address. Read more
source§

unsafe fn store_ptr_non_temporal(self, addr: *mut f32)

Stores vector into aligned array at given address in uncached memory (non-temporal store). This may be more efficient than store_ptr_aligned if it is unlikely that stored data will stay in cache until it is read again, for instance, when storing large blocks of memory. Read more
source§

fn split(self) -> (Vec4f, Vec4f)

Splits vector into low and high halfs. Read more
source§

impl Copy for Vec8f

source§

impl SIMDVector<8> for Vec8f

Auto Trait Implementations§

§

impl Freeze for Vec8f

§

impl RefUnwindSafe for Vec8f

§

impl Send for Vec8f

§

impl Sync for Vec8f

§

impl Unpin for Vec8f

§

impl UnwindSafe for Vec8f

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> 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<T> SIMDFusedCalc for T
where T: SIMDFusedCalcFallback + Arithmetic + Neg<Output = T>,

source§

fn mul_add(self, b: T, c: T) -> T

Multiplies vector by b and adds c to the product. Read more
source§

fn mul_sub(self, b: T, c: T) -> T

Multiplies vector by b ans substracts c from the procuct. Read more
source§

fn nmul_add(self, b: T, c: T) -> T

Multiplies vector by b and substracts the product from c. Read more
source§

fn nmul_sub(self, b: T, c: T) -> T

Multiplies vector by b and substracts the product from -c. Read more
source§

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

§

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>,

§

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>,

§

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, Rhs, Output> Arithmetic<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output>,

source§

impl<T, Rhs> ArithmeticAssign<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs>,