pub struct Array<T> { /* private fields */ }
Expand description
A simple n-dimensional array backed by a Vec
Implementations§
Source§impl Array<f64>
impl Array<f64>
Sourcepub fn add_simd(&self, other: &Array<f64>) -> Array<f64>
pub fn add_simd(&self, other: &Array<f64>) -> Array<f64>
SIMD-accelerated elementwise addition Elementwise addition (scalar loop; replaces previous SIMD helpers)
Sourcepub fn dot_1d_simd(&self, other: &Array<f64>) -> f64
pub fn dot_1d_simd(&self, other: &Array<f64>) -> f64
SIMD-accelerated dot product for 1D arrays Dot product for 1D arrays (scalar loop; replaces previous SIMD helpers)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Array<T>
impl<T> RefUnwindSafe for Array<T>where
T: RefUnwindSafe,
impl<T> Send for Array<T>where
T: Send,
impl<T> Sync for Array<T>where
T: Sync,
impl<T> Unpin for Array<T>where
T: Unpin,
impl<T> UnwindSafe for Array<T>where
T: UnwindSafe,
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 more