pub enum GridIndexing {
Matrix,
Cartesian,
}Available on crate feature
api only.Expand description
Enum to specify index cardinal layout.
Variants§
Matrix
Dimensions are in the same order as the cardinality of the inputs. Equivalent to “ij” indexing in NumPy and PyTorch.
Cartesian
The same as Matrix, but the first two dimensions are swapped. Equivalent to “xy” indexing in NumPy and PyTorch.
Trait Implementations§
Source§impl Clone for GridIndexing
impl Clone for GridIndexing
impl Copy for GridIndexing
Source§impl Debug for GridIndexing
impl Debug for GridIndexing
Source§impl Default for GridIndexing
impl Default for GridIndexing
impl Eq for GridIndexing
Source§impl From<GridIndexing> for GridOptions
impl From<GridIndexing> for GridOptions
Source§fn from(value: GridIndexing) -> Self
fn from(value: GridIndexing) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GridIndexing
impl PartialEq for GridIndexing
impl StructuralPartialEq for GridIndexing
Auto Trait Implementations§
impl Freeze for GridIndexing
impl RefUnwindSafe for GridIndexing
impl Send for GridIndexing
impl Sync for GridIndexing
impl Unpin for GridIndexing
impl UnsafeUnpin for GridIndexing
impl UnwindSafe for GridIndexing
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.