pub struct Gen;Expand description
General tensor implementation with no symmetries of the form Tᵢⱼₖ…
Trait Implementations§
Source§impl<const N: usize, const R: usize> TensorIndex<N, R> for Gen
impl<const N: usize, const R: usize> TensorIndex<N, R> for Gen
Source§type Indices = GenIndices<N, R>
type Indices = GenIndices<N, R>
Type of iterator over valid tensor indices.
Source§fn offset_from_index(index: [usize; R]) -> usize
fn offset_from_index(index: [usize; R]) -> usize
Converts a valid index into a buffer offset for tensor storage.
Source§fn indices() -> Self::Indices
fn indices() -> Self::Indices
Iterates over all (unique) indices in the tensor.
This must index the tensor in the same order as
Self::offset_from_index.Auto Trait Implementations§
impl Freeze for Gen
impl RefUnwindSafe for Gen
impl Send for Gen
impl Sync for Gen
impl Unpin for Gen
impl UnsafeUnpin for Gen
impl UnwindSafe for Gen
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