SciPy
Section Navigation
LaplacianNd.tosparse
Constructs a sparse array from the Laplacian data. The returned sparse array format is dependent on the selected boundary conditions.
The shape is (N, N) where N = np.prod(grid_shape).
(N, N)
N = np.prod(grid_shape)