Enum DensePivot
#[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§
§impl Clone for DensePivot
impl Clone for DensePivot
§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 more