num::linear::dense_laplacian¶
Defined in header <linear/graph/laplacian.hpp>
template <typename Weight = real, typename Index = idx>
mat<real> dense_laplacian(const graph<Weight, Index> &g);
Construct the graph Laplacian, dense: \(L = D - W\).
Warning
Singular, since \(L \mathbf{1} = 0\): tag it assume_psd, not assume_spd.