Enum ndarray_linalg::layout::MatrixLayout [−][src]
Variants
Implementations
impl MatrixLayout
[src]
pub fn size(&self) -> (i32, i32)
[src]
pub fn resized(&self, row: i32, col: i32) -> MatrixLayout
[src]
pub fn lda(&self) -> i32
[src]
pub fn len(&self) -> i32
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn same_order(&self, other: &MatrixLayout) -> bool
[src]
pub fn toggle_order(&self) -> MatrixLayout
[src]
pub fn t(&self) -> MatrixLayout
[src]
Transpose without changing memory representation
C-contigious row=2, lda=3
[[1, 2, 3]
[4, 5, 6]]
and F-contigious col=2, lda=3
[[1, 4]
[2, 5]
[3, 6]]
have same memory representation [1, 2, 3, 4, 5, 6]
, and this toggles them.
let layout = MatrixLayout::C { row: 2, lda: 3 }; assert_eq!(layout.t(), MatrixLayout::F { col: 2, lda: 3 });
Trait Implementations
impl Clone for MatrixLayout
[src]
pub fn clone(&self) -> MatrixLayout
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MatrixLayout
[src]
impl Debug for MatrixLayout
[src]
impl Eq for MatrixLayout
[src]
impl PartialEq<MatrixLayout> for MatrixLayout
[src]
pub fn eq(&self, other: &MatrixLayout) -> bool
[src]
pub fn ne(&self, other: &MatrixLayout) -> bool
[src]
impl StructuralEq for MatrixLayout
[src]
impl StructuralPartialEq for MatrixLayout
[src]
Auto Trait Implementations
impl RefUnwindSafe for MatrixLayout
impl Send for MatrixLayout
impl Sync for MatrixLayout
impl Unpin for MatrixLayout
impl UnwindSafe for MatrixLayout
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,