Skip to main content

pio_ref_bus_indices

Function pio_ref_bus_indices 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pio_ref_bus_indices( net: *const PioNetwork, out: *mut i64, cap: usize, ) -> usize
Expand description

Write the dense [0, n) indices of the reference (slack) buses, ascending, into out, up to cap entries, and return the total count: the cap/count convention of pio_bus_ids. 0 means none; > 1 means one reference per island or several fixed references in one island (a normalized case always reports >= 1).