reduce_algorithms¶
wield.control.algorithms.statespace.dense.reduce_algorithms
Functions
|
|
|
Permutes the E matrix to be on the location='upper left' or 'upper right' and as diagonal as possible. |
|
|
|
|
|
|
|
Details
- permute_Ediag_inplace(ABCDE, Nst=None, Nco=None, location='upper left', nonzero_test=<function nonzero_test>, rank_nonzeroE=<function rank_nonzeroE>)[source][github]¶
Permutes the E matrix to be on the location=’upper left’ or ‘upper right’ and as diagonal as possible.
return ABCDE, and then Ndiag, Ndiag + NcoM, Ndiag + NstM which are the boundaries of the diagonal block and the nondiagonal nonzero block
TODO, should output the boundary TODO, algorithm could use swaps rather than percolates