spectral.legendre_mass_matrix#

spectral.legendre_mass_matrix(nodes: ndarray) ndarray[source]#

Return Legendre spectral mass matrix using normalized basis.

Parameters:
nodesnp.ndarray

Collocation nodes

Returns:
np.ndarray

Mass matrix of shape (N, N)