Mesh.degree_matrix

Mesh.degree_matrix(rtype='array')[source]

Compute the degree matrix of the mesh.

Parameters:
rtypeLiteral[‘array’, ‘csc’, ‘csr’, ‘coo’, ‘list’], optional

Format of the result.

Returns:
array-like

The degree matrix.