Skip to main content

calc_kron_reduced_impedance

Function calc_kron_reduced_impedance 

Source
pub fn calc_kron_reduced_impedance(
    matrix: &[Vec<Complex64>],
    keep: &[usize],
    eliminate: &[usize],
    singular_pivot: f64,
) -> Option<Vec<Vec<Complex64>>>
Expand description

Kron reduction of a series impedance matrix: the impedance seen at the keep conductors when the eliminate conductors carry no voltage,

Z_red = Z_kk − Z_ke Z_ee⁻¹ Z_ek

with rows and columns of the result in keep order. A single eliminated conductor n reduces entrywise as z_ij − z_in z_nj / z_nn. None when Z_ee has a pivot of singular_pivot or smaller (crate::dense::invert_dense_matrix), or an index lies outside the matrix. The one neutral elimination: neutral_kron_reduce and the multiconductor to balanced lowering in powerio-tnd read it.