#[non_exhaustive]pub enum DensePivot {
Partial,
OpenDssDiagonal,
}Expand description
The pivot order of invert_dense_matrix’s elimination.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Partial
Gauss-Jordan elimination with partial pivoting: each column’s pivot
is the first entry of largest DenseScalar::magnitude at or below
the diagonal, the pivot row is scaled by the pivot and subtracted
from every other row.
OpenDssDiagonal
OpenDSS’s TcMatrix.Invert (DSS C-API 0.14.5 Ucmatrix.pas): an in
place sweep that pivots on the diagonal only, each step on the first
unused diagonal entry of strictly largest
DenseScalar::unscaled_magnitude, eliminating
a_ij − a_ik a_kj / a_kk with DenseScalar::ratio_quotient. With
both floors zero it refuses where the engine reports an inversion
error: no unused diagonal entry is nonzero, so a zero self impedance
with nonzero mutuals is refused although row pivoting inverts it,
while a pivot left at rounding noise is accepted. PowerIO adds one
refusal the engine does not make: an unused entry an elimination
makes nonfinite is refused (DenseRefusal::NonFinite), where
TcMatrix.Invert sets its error only for a zero pivot and returns
the nonfinite inverse. A pivot whose
unscaled magnitude overflows to infinity (any entry above about
1.34e154) is taken, as the engine takes it (RMY = inf is a
nonzero pivot); a NaN entry is never selected.
Trait Implementations§
Source§impl Clone for DensePivot
impl Clone for DensePivot
Source§fn clone(&self) -> DensePivot
fn clone(&self) -> DensePivot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DensePivot
Source§impl Debug for DensePivot
impl Debug for DensePivot
impl Eq for DensePivot
Source§impl PartialEq for DensePivot
impl PartialEq for DensePivot
impl StructuralPartialEq for DensePivot
Auto Trait Implementations§
impl Freeze for DensePivot
impl RefUnwindSafe for DensePivot
impl Send for DensePivot
impl Sync for DensePivot
impl Unpin for DensePivot
impl UnsafeUnpin for DensePivot
impl UnwindSafe for DensePivot
Blanket Implementations§
impl<T> Allocation for T
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.