MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::sparse::analysis::detail Namespace Reference

Functions

std::size_t etree_leaf (std::size_t i, std::size_t j, const std::vector< std::size_t > &first, std::vector< std::size_t > &maxfirst, std::vector< std::size_t > &prevleaf, std::vector< std::size_t > &ancestor, int &jleaf)
 CSparse cs_leaf: is column j a leaf of the i-th row subtree of the column etree, and if so where?

Function Documentation

◆ etree_leaf()

std::size_t mtl::sparse::analysis::detail::etree_leaf ( std::size_t i,
std::size_t j,
const std::vector< std::size_t > & first,
std::vector< std::size_t > & maxfirst,
std::vector< std::size_t > & prevleaf,
std::vector< std::size_t > & ancestor,
int & jleaf )
inline

CSparse cs_leaf: is column j a leaf of the i-th row subtree of the column etree, and if so where?

Returns the least common ancestor q and sets jleaf to 0 (not a leaf), 1 (first leaf), or 2 (subsequent leaf).