pub struct BlockSparseStorage<T> { /* private fields */ }Expand description
Pure-data half of the block-sparse tensor split.
Holds a 64-byte-aligned packed buffer of allowed-block elements
with Arc-based shared ownership (Copy-on-Write via
Arc::make_mut). The interpretation (which slab maps to which
block coordinate) lives on
BlockSparseLayout<S>; the
BlockSparseTensorData<T, S> wrapper joins them.
Notice that BlockSparseStorage<T> is sector-agnostic — the
symmetry sector parameter S lives only on the layout, not on
the storage.
Implementations§
Trait Implementations§
Source§impl<T> Clone for BlockSparseStorage<T>
impl<T> Clone for BlockSparseStorage<T>
impl<T: Scalar> OpsFor<BlockSparseStorage<T>> for NativeBackend
Source§impl<T> Storage for BlockSparseStorage<T>
impl<T> Storage for BlockSparseStorage<T>
impl<T, S: Sector> StorageFor<BlockSparseLayout<S>> for BlockSparseStorage<T>
Auto Trait Implementations§
impl<T> Freeze for BlockSparseStorage<T>
impl<T> RefUnwindSafe for BlockSparseStorage<T>where
T: RefUnwindSafe,
impl<T> Send for BlockSparseStorage<T>
impl<T> Sync for BlockSparseStorage<T>
impl<T> Unpin for BlockSparseStorage<T>
impl<T> UnsafeUnpin for BlockSparseStorage<T>
impl<T> UnwindSafe for BlockSparseStorage<T>where
T: RefUnwindSafe,
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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