__optimize_permutation_matrix__
- :
val =__optimize_permutation_matrix__()¶ - :
old_val =__optimize_permutation_matrix__(new_val)¶ - :
old_val =__optimize_permutation_matrix__(new_val, "local")¶ Read or change whether permutation matrices are kept in a compact internal form.
With no argument the current setting is returned; supplying new_val changes it and returns the previous value. While the setting is on—its default—a matrix that is a pure row/column permutation is held in a compact representation that stores only the permutation, saving both memory and work. Turning it off forces such results to be stored as ordinary full matrices instead.
Invoked inside a function with a trailing
"local"argument, the new setting applies only to that function and anything it calls, and the previous setting is restored automatically when the function returns.