Template Function mrpt::math::laplacian

Function Documentation

template<typename MATIN, typename MATOUT>
void mrpt::math::laplacian(const MATIN &g, MATOUT &ret)

Computes the Laplacian of a square graph weight matrix. The laplacian matrix is L = D - W, with D a diagonal matrix with the degree of each node, W the edge weights.