D = gsp_gradient_mat(G);
G | Graph structure |
D | Gradient sparse matrix |
This function return the gradient matrix. To be more effiecient, call the function:
G = gsp_adj2vec(G)
before this function.
Example:
N = 40; G = gsp_sensor(N); G = gsp_adj2vec(G); D = gsp_grad_mat(G);