pub struct TwoLevelHistogram {
pub bins: Vec<u64>,
pub lo: f64,
pub hi: f64,
pub n_tiles: usize,
}Expand description
Two-level histogram: first pass per-tile, second pass merge.
Returns the merged bin counts.
Fields§
§bins: Vec<u64>Merged histogram bins.
lo: f64Lower bound of the value range.
hi: f64Upper bound of the value range.
n_tiles: usizeNumber of work-groups / tiles used.
Implementations§
Trait Implementations§
Source§impl Clone for TwoLevelHistogram
impl Clone for TwoLevelHistogram
Source§fn clone(&self) -> TwoLevelHistogram
fn clone(&self) -> TwoLevelHistogram
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TwoLevelHistogram
impl RefUnwindSafe for TwoLevelHistogram
impl Send for TwoLevelHistogram
impl Sync for TwoLevelHistogram
impl Unpin for TwoLevelHistogram
impl UnsafeUnpin for TwoLevelHistogram
impl UnwindSafe for TwoLevelHistogram
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