Struct ella_tensor::mask::Mask
source · pub struct Mask<S: Shape> { /* private fields */ }Implementations§
source§impl<S: Shape> Mask<S>
impl<S: Shape> Mask<S>
pub fn shape(&self) -> &S
pub fn strides(&self) -> &S
pub fn ndim(&self) -> usize
pub fn size(&self) -> usize
pub fn as_dyn(&self) -> Mask<Dyn>
pub fn iter(&self) -> MaskIter<S> ⓘ
pub fn index<I>(&self, i: I) -> boolwhere I: Indexer<S>,
pub fn is_standard_layout(&self) -> bool
pub fn all(&self) -> bool
pub fn any(&self) -> bool
pub fn none(&self) -> bool
pub fn num_valid(&self) -> Option<usize>
source§impl<S> Mask<S>where
S: Shape + RemoveAxis,
impl<S> Mask<S>where S: Shape + RemoveAxis,
pub fn index_axis<I: IndexValue>( &self, axis: Axis, index: I ) -> Mask<S::Smaller>
Trait Implementations§
Auto Trait Implementations§
impl<S> RefUnwindSafe for Mask<S>where S: RefUnwindSafe,
impl<S> Send for Mask<S>
impl<S> Sync for Mask<S>
impl<S> Unpin for Mask<S>where S: Unpin,
impl<S> UnwindSafe for Mask<S>where S: 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