MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
dulmage_mendelsohn.hpp File Reference
#include <algorithm>
#include <cstddef>
#include <stdexcept>
#include <vector>
#include <mtl/mat/compressed2D.hpp>

Classes

struct  mtl::sparse::ordering::btf_result
 Result of a Block Triangular Form decomposition. More...

Namespaces

namespace  mtl
namespace  mtl::sparse
namespace  mtl::sparse::ordering
namespace  mtl::sparse::ordering::detail

Functions

template<typename Value, typename Parameters>
std::vector< std::ptrdiff_t > mtl::sparse::ordering::maximum_matching (const mat::compressed2D< Value, Parameters > &A)
 Maximum-cardinality bipartite matching between rows and columns of A.
std::size_t mtl::sparse::ordering::detail::tarjan_scc (const std::vector< std::vector< std::size_t > > &adj, std::vector< std::size_t > &comp)
 Iterative Tarjan SCC.
template<typename Value, typename Parameters>
btf_result mtl::sparse::ordering::block_triangular_form (const mat::compressed2D< Value, Parameters > &A)
 Compute the Block Triangular Form of a square sparse matrix.