scipy.sparse.linalg.LaplacianNd.
tosparse
-
LaplacianNd.tosparse()[source]
Constructs a sparse array from the Laplacian data. The returned sparse
array format is dependent on the selected boundary conditions.
- Returns:
- Lscipy.sparse.sparray
The shape is (N, N)
where N = np.prod(grid_shape)
.