autopdex.dae.detect_stage_dependencies
- autopdex.dae.detect_stage_dependencies(A)[source]
Detects coupled structures (strongly connected components) in the Butcher matrix A and identifies explicit stages.
- Parameters:
A (ndarray) – Butcher matrix of stage coefficients (s x s).
- Returns:
A list of lists containing the indices of coupled stages. explicit_stages (list): A list of indices corresponding to explicit stages. block_dependencies (dict): A dictionary mapping each block to its dependent blocks.
- Return type:
stage_blocks (list)