pub struct ComplexVec4 { /* private fields */ }
๐Deprecated: Use scirs2_core::simd_ops::SimdUnifiedOps instead
Expand description
Simplified SIMD-like structure for complex operations NOTE: This is being deprecated in favor of SciRS2 SIMD operations. New code should use scirs2_core::simd_ops::SimdUnifiedOps directly.
Implementationsยง
Sourceยงimpl ComplexVec4
impl ComplexVec4
Sourcepub fn splat(value: Complex64) -> Self
pub fn splat(value: Complex64) -> Self
Create a new ComplexVec4 where all elements have the same value
Sourcepub fn mul(&self, other: &ComplexVec4) -> ComplexVec4
pub fn mul(&self, other: &ComplexVec4) -> ComplexVec4
Multiply by another ComplexVec4
Sourcepub fn add(&self, other: &ComplexVec4) -> ComplexVec4
pub fn add(&self, other: &ComplexVec4) -> ComplexVec4
Add another ComplexVec4
Sourcepub fn sub(&self, other: &ComplexVec4) -> ComplexVec4
pub fn sub(&self, other: &ComplexVec4) -> ComplexVec4
Subtract another ComplexVec4
Sourcepub fn neg(&self) -> ComplexVec4
pub fn neg(&self) -> ComplexVec4
Negate all elements
Trait Implementationsยง
Sourceยงimpl Clone for ComplexVec4
impl Clone for ComplexVec4
Sourceยงfn clone(&self) -> ComplexVec4
fn clone(&self) -> ComplexVec4
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSourceยงimpl Debug for ComplexVec4
impl Debug for ComplexVec4
impl Copy for ComplexVec4
Auto Trait Implementationsยง
impl Freeze for ComplexVec4
impl RefUnwindSafe for ComplexVec4
impl Send for ComplexVec4
impl Sync for ComplexVec4
impl Unpin for ComplexVec4
impl UnwindSafe for ComplexVec4
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSourceยงimpl<T> Pointable for T
impl<T> Pointable for T
Sourceยงimpl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Sourceยงfn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSourceยงfn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Sourceยงfn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Sourceยงfn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.