pub enum MatrixLayout {
RowMajor,
ColMajor,
}
Expand description
Layout of a 2D structure such as a tensor, shared memory or slice, used within any matmul kernel level
Variants§
Implementations§
Source§impl MatrixLayout
impl MatrixLayout
pub fn new_RowMajor() -> Self
pub fn __expand_new_RowMajor(_: &mut Scope) -> MatrixLayoutExpand
pub fn new_ColMajor() -> Self
pub fn __expand_new_ColMajor(_: &mut Scope) -> MatrixLayoutExpand
Trait Implementations§
Source§impl Clone for MatrixLayout
impl Clone for MatrixLayout
Source§fn clone(&self) -> MatrixLayout
fn clone(&self) -> MatrixLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CubeDebug for MatrixLayout
impl CubeDebug for MatrixLayout
Source§fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
Set the debug name of this type’s expansion. Should do nothing for types that don’t appear
at runtime
Source§impl CubeType for MatrixLayout
impl CubeType for MatrixLayout
type ExpandType = MatrixLayoutExpand
Source§fn init(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn init(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Wrapper around the init method, necessary to type inference.
Source§impl Debug for MatrixLayout
impl Debug for MatrixLayout
Source§impl Hash for MatrixLayout
impl Hash for MatrixLayout
Source§impl PartialEq for MatrixLayout
impl PartialEq for MatrixLayout
impl Copy for MatrixLayout
impl Eq for MatrixLayout
impl StructuralPartialEq for MatrixLayout
Auto Trait Implementations§
impl Freeze for MatrixLayout
impl RefUnwindSafe for MatrixLayout
impl Send for MatrixLayout
impl Sync for MatrixLayout
impl Unpin for MatrixLayout
impl UnwindSafe for MatrixLayout
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