Struct feanor_math::matrix::TransposableSubmatrix
source · pub struct TransposableSubmatrix<'a, V: AsPointerToSlice<T>, T, const TRANSPOSED: bool> { /* private fields */ }
Expand description
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Implementations§
source§impl<'a, V: AsPointerToSlice<T>, T> TransposableSubmatrix<'a, V, T, false>
impl<'a, V: AsPointerToSlice<T>, T> TransposableSubmatrix<'a, V, T, false>
sourcepub fn transpose(self) -> TransposableSubmatrix<'a, V, T, true>
pub fn transpose(self) -> TransposableSubmatrix<'a, V, T, true>
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
source§impl<'a, V: AsPointerToSlice<T>, T> TransposableSubmatrix<'a, V, T, true>
impl<'a, V: AsPointerToSlice<T>, T> TransposableSubmatrix<'a, V, T, true>
sourcepub fn transpose(self) -> TransposableSubmatrix<'a, V, T, false>
pub fn transpose(self) -> TransposableSubmatrix<'a, V, T, false>
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
source§impl<'a, V: AsPointerToSlice<T>, T, const TRANSPOSED: bool> TransposableSubmatrix<'a, V, T, TRANSPOSED>
impl<'a, V: AsPointerToSlice<T>, T, const TRANSPOSED: bool> TransposableSubmatrix<'a, V, T, TRANSPOSED>
sourcepub fn submatrix(self, rows: Range<usize>, cols: Range<usize>) -> Self
pub fn submatrix(self, rows: Range<usize>, cols: Range<usize>) -> Self
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
sourcepub fn restrict_rows(self, rows: Range<usize>) -> Self
pub fn restrict_rows(self, rows: Range<usize>) -> Self
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
sourcepub fn into_at(self, i: usize, j: usize) -> &'a T
pub fn into_at(self, i: usize, j: usize) -> &'a T
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
sourcepub fn at<'b>(&'b self, i: usize, j: usize) -> &'b T
pub fn at<'b>(&'b self, i: usize, j: usize) -> &'b T
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
sourcepub fn restrict_cols(self, cols: Range<usize>) -> Self
pub fn restrict_cols(self, cols: Range<usize>) -> Self
§Availability
This API is marked as unstable and is only available when the unstable-enable
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Trait Implementations§
source§impl<'a, V: AsPointerToSlice<T>, T, const TRANSPOSED: bool> Clone for TransposableSubmatrix<'a, V, T, TRANSPOSED>
impl<'a, V: AsPointerToSlice<T>, T, const TRANSPOSED: bool> Clone for TransposableSubmatrix<'a, V, T, TRANSPOSED>
source§impl<'a, V: AsPointerToSlice<T>, T> From<Submatrix<'a, V, T>> for TransposableSubmatrix<'a, V, T, false>
impl<'a, V: AsPointerToSlice<T>, T> From<Submatrix<'a, V, T>> for TransposableSubmatrix<'a, V, T, false>
source§impl<'a, V: AsPointerToSlice<T>, T, const TRANSPOSED: bool> MatrixCompare<T> for TransposableSubmatrix<'a, V, T, TRANSPOSED>
impl<'a, V: AsPointerToSlice<T>, T, const TRANSPOSED: bool> MatrixCompare<T> for TransposableSubmatrix<'a, V, T, TRANSPOSED>
impl<'a, V: AsPointerToSlice<T>, T, const TRANSPOSED: bool> Copy for TransposableSubmatrix<'a, V, T, TRANSPOSED>
Auto Trait Implementations§
impl<'a, V, T, const TRANSPOSED: bool> Freeze for TransposableSubmatrix<'a, V, T, TRANSPOSED>
impl<'a, V, T, const TRANSPOSED: bool> RefUnwindSafe for TransposableSubmatrix<'a, V, T, TRANSPOSED>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, V, T, const TRANSPOSED: bool> Send for TransposableSubmatrix<'a, V, T, TRANSPOSED>
impl<'a, V, T, const TRANSPOSED: bool> Sync for TransposableSubmatrix<'a, V, T, TRANSPOSED>
impl<'a, V, T, const TRANSPOSED: bool> Unpin for TransposableSubmatrix<'a, V, T, TRANSPOSED>
impl<'a, V, T, const TRANSPOSED: bool> UnwindSafe for TransposableSubmatrix<'a, V, T, TRANSPOSED>where
T: RefUnwindSafe,
V: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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