pub enum BlockStructure {
Rectangular,
TriangularLower,
StrictTriangularLower,
UnitTriangularLower,
TriangularUpper,
StrictTriangularUpper,
UnitTriangularUpper,
}
Expand description
Describes the parts of the matrix that must be accessed.
Variants§
Rectangular
The full matrix is accessed.
TriangularLower
The lower triangular half (including the diagonal) is accessed.
StrictTriangularLower
The lower triangular half (excluding the diagonal) is accessed.
UnitTriangularLower
The lower triangular half (excluding the diagonal, which is assumed to be equal to
1.0
) is accessed.
TriangularUpper
The upper triangular half (including the diagonal) is accessed.
StrictTriangularUpper
The upper triangular half (excluding the diagonal) is accessed.
UnitTriangularUpper
The upper triangular half (excluding the diagonal, which is assumed to be equal to
1.0
) is accessed.
Implementations§
Source§impl BlockStructure
impl BlockStructure
Sourcepub fn is_lower(self) -> bool
pub fn is_lower(self) -> bool
Checks if self
is triangular lower (either inclusive or exclusive).
Sourcepub fn is_upper(self) -> bool
pub fn is_upper(self) -> bool
Checks if self
is triangular upper (either inclusive or exclusive).
Sourcepub fn transpose(self) -> BlockStructure
pub fn transpose(self) -> BlockStructure
Returns the block structure corresponding to the transposed matrix.
Trait Implementations§
Source§impl Clone for BlockStructure
impl Clone for BlockStructure
Source§fn clone(&self) -> BlockStructure
fn clone(&self) -> BlockStructure
Returns a copy 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 Debug for BlockStructure
impl Debug for BlockStructure
Source§impl PartialEq for BlockStructure
impl PartialEq for BlockStructure
impl Copy for BlockStructure
impl Eq for BlockStructure
impl StructuralPartialEq for BlockStructure
Auto Trait Implementations§
impl Freeze for BlockStructure
impl RefUnwindSafe for BlockStructure
impl Send for BlockStructure
impl Sync for BlockStructure
impl Unpin for BlockStructure
impl UnwindSafe for BlockStructure
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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