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

Concept for a fill-reducing ordering algorithm. More...

#include <ordering_concepts.hpp>

Concept definition

template<typename O, typename Matrix>
concept mtl::sparse::FillReducingOrdering = requires(const O& ord, const Matrix& A) {
{ ord(A) } -> std::convertible_to<std::vector<std::size_t>>;
}
A 2D collection with num_rows(), num_cols(), and (r,c) access.
Definition matrix.hpp:14
Concept for a fill-reducing ordering algorithm.
Definition ordering_concepts.hpp:18

Detailed Description

Concept for a fill-reducing ordering algorithm.

An ordering is a callable that takes a sparse matrix and returns a permutation vector p where p[new_index] = old_index.