Skip to main content

pio_calc_incidence_matrix

Function pio_calc_incidence_matrix 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pio_calc_incidence_matrix( network: *const PioBalancedNetwork, formula: *const c_char, formula_len: usize, error: *mut *mut PioError, ) -> *mut PioSparseMatrix
Expand description

Signed branch by bus incidence matrix of a balanced network. formula names the branch susceptance formula, which decides the zero impedance guard: series_susceptance (the default when formula is NULL), series_susceptance_no_phase_shift, tap_adjusted_reactance, tap_adjusted_series_susceptance, or reactance_only. Any other token fails with REQUEST.CAPI.UNKNOWN_FORMULA.

ยงSafety

Pointers and handles must satisfy the crate-level safety requirements.