Skip to content

num::randommat::to_approxchol_graph

Defined in header <linear/graph/randommat/preconditioner.hpp>

template <typename Weight, std::integral Index>
adjacency_list<real, idx> to_approxchol_graph(const graph<Weight, Index> &G);  // (1)

template <typename Weight, std::integral Index>
adjacency_list<real, idx>
to_approxchol_graph(const structures::multigraph<Weight, Index> &mg);  // (2)

adjacency_list<real, idx> to_approxchol_graph(const spmat &L);  // (3)

(1) Convert num::graph to randommat::adjacency_list.

(2) Convert num::multigraph to randommat::adjacency_list.

(3) Convert Laplacian spmat (CSR) to randommat::adjacency_list.