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

Approximate Minimum Degree ordering. More...

#include <amd.hpp>

Public Member Functions

template<typename Value, typename Parameters>
std::vector< std::size_t > operator() (const mat::compressed2D< Value, Parameters > &A) const
 Compute the AMD ordering for a symmetric sparse matrix.

Detailed Description

Approximate Minimum Degree ordering.

Callable object: given a symmetric sparse matrix, returns a permutation vector that reduces fill-in during Cholesky factorization.

Member Function Documentation

◆ operator()()

template<typename Value, typename Parameters>
std::vector< std::size_t > mtl::sparse::ordering::amd::operator() ( const mat::compressed2D< Value, Parameters > & A) const
inline

Compute the AMD ordering for a symmetric sparse matrix.

Returns permutation p where p[new] = old.

Runs the near-linear quotient-graph minimum-degree algorithm (CSparse cs_amd) on the pattern of A + A^T.


The documentation for this struct was generated from the following file:
  • /home/runner/work/mtl5/mtl5/include/mtl/sparse/ordering/amd.hpp