Skip to content

num::randommat::act

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

template <typename Float = double, std::integral Index = num::idx, typename Rng = rng64>
cholesky_factor<Float, Index> act(const adjacency_list<Float, Index> &G, Rng &rng,
                                  std::type_identity_t<Index> trees = 1);

Compute an approximate Cholesky factor, sampling one spanning tree per elimination: \(L \approx C C^T\).