num::linear::laplacian¶
Defined in header <linear/graph/laplacian.hpp>
template <typename Weight = real, typename Index = idx>
spmat laplacian(const graph<Weight, Index> &g); // (1)
template <std::size_t D, typename Weight, std::integral Index>
spmat laplacian(const structured_grid_graph<D, Weight, Index> &g); // (2)
spmat laplacian(const structures::multigraph<real, idx> &g); // (3)
(1) Undocumented.
(2) Laplacian of an implicit Cartesian grid without materializing adjacency lists.
(3) Laplacian of a multigraph, summing parallel edge multiplicities.