Skip to main content

mimo_step

Function mimo_step 

Source
pub fn mimo_step(
    a: &[f64],
    b: &[f64],
    x: &[f64],
    u: &[f64],
    out: &mut [f64],
) -> bool
Expand description

MIMO state transition x' = A·x + B·u for a system with n states and m inputs. a is the n×n state matrix (row-major), b the n×m input matrix (row-major), x the state (len n), u the input (len m); the next state is written to out (len n). Zero-heap. Returns false on a dimension mismatch.