pub struct Tile {
pub data: Vec<f64>,
}Expand description
A single work-group tile holding up to CAPACITY f64 values.
Fields§
§data: Vec<f64>Elements in this tile.
Implementations§
Source§impl Tile
impl Tile
Sourcepub fn from_slice(s: &[f64]) -> Self
pub fn from_slice(s: &[f64]) -> Self
Create a tile from a slice.
Sourcepub fn reduce_sum(&self) -> f64
pub fn reduce_sum(&self) -> f64
Reduce: sum of all elements.
Sourcepub fn reduce_max(&self) -> f64
pub fn reduce_max(&self) -> f64
Reduce: maximum element.
Sourcepub fn reduce_min(&self) -> f64
pub fn reduce_min(&self) -> f64
Reduce: minimum element.
Sourcepub fn exclusive_scan_inplace(&mut self)
pub fn exclusive_scan_inplace(&mut self)
Exclusive prefix scan within the tile (in-place).
Sourcepub fn inclusive_scan_inplace(&mut self)
pub fn inclusive_scan_inplace(&mut self)
Inclusive prefix scan within the tile (in-place).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tile
impl RefUnwindSafe for Tile
impl Send for Tile
impl Sync for Tile
impl Unpin for Tile
impl UnsafeUnpin for Tile
impl UnwindSafe for Tile
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