utils_preorder.matrix function

Preorder Matrices