Skip to content

Commit 8757381

Browse files
docs: add docstring for reordered_matrix
1 parent be8f6c2 commit 8757381

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/structural_transformation/utils.jl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,14 @@ function but_ordered_incidence(ts::TearingState, varmask = highest_order_variabl
352352
mm[[var_eq_matching[v] for v in vordering if var_eq_matching[v] isa Int], vordering], bb
353353
end
354354

355-
# debugging use
356-
function reordered_matrix(sys, torn_matching)
355+
"""
356+
$(TYPEDSIGNATURES)
357+
358+
Given a system `sys` and torn variable-equation matching `torn_matching`, return the sparse
359+
incidence matrix of the system with SCCs grouped together, and each SCC sorted to contain
360+
the analytically solved equations/variables before the unsolved ones.
361+
"""
362+
function reordered_matrix(sys::System, torn_matching)
357363
s = TearingState(sys)
358364
complete!(s.structure)
359365
@unpack graph = s.structure

0 commit comments

Comments
 (0)