[−][src]Struct aljabar::Permutation
Permutation matrix created for LU decomposition.
Implementations
impl<const N: usize> Permutation<{ N }>
[src]
pub fn unit() -> Permutation<{ N }>
[src]
Returns the unit permutation.
pub fn swap(&mut self, a: usize, b: usize)
[src]
Swaps two rows and increments the number of swaps.
pub fn num_swaps(&self) -> usize
[src]
Returns the number of swaps that have occurred.
Trait Implementations
impl<const N: usize> Clone for Permutation<N>
[src]
fn clone(&self) -> Permutation<N>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<const N: usize> Copy for Permutation<N>
[src]
impl<const N: usize> Debug for Permutation<{ N }>
[src]
impl<const N: usize> Deref for Permutation<{ N }>
[src]
type Target = [usize; N]
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<const N: usize> DerefMut for Permutation<{ N }>
[src]
impl<T, const N: usize> Mul<Vector<T, N>> for Permutation<{ N }> where
T: Clone,
[src]
T: Clone,
type Output = Vector<T, { N }>
The resulting type after applying the *
operator.
fn mul(self, rhs: Vector<T, { N }>) -> Self::Output
[src]
impl<RHS, const N: usize> PartialEq<RHS> for Permutation<{ N }> where
RHS: Deref<Target = [usize; N]>,
[src]
RHS: Deref<Target = [usize; N]>,
Auto Trait Implementations
impl<const N: usize> RefUnwindSafe for Permutation<N>
impl<const N: usize> Send for Permutation<N>
impl<const N: usize> Sync for Permutation<N>
impl<const N: usize> Unpin for Permutation<N>
impl<const N: usize> UnwindSafe for Permutation<N>
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>,