MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
postorder.hpp File Reference
#include <cassert>
#include <cstddef>
#include <vector>
#include <mtl/sparse/analysis/elimination_tree.hpp>

Namespaces

namespace  mtl
namespace  mtl::sparse
namespace  mtl::sparse::analysis

Functions

std::vector< std::size_t > mtl::sparse::analysis::tree_postorder (const std::vector< std::size_t > &parent)
 Compute a depth-first postorder of the elimination tree.
std::vector< std::size_t > mtl::sparse::analysis::inverse_postorder (const std::vector< std::size_t > &post)
 Given a postorder, return the inverse postorder mapping: inv_post[node] = position of node in the postorder.