bundles / scipy latest / scipy / sparse / linalg / _special_sparse_arrays / LaplacianNd / tosparse
function
scipy.sparse.linalg._special_sparse_arrays:LaplacianNd.tosparse
Signature
def tosparse ( self ) Summary
Constructs a sparse array from the Laplacian data. The returned sparse array format is dependent on the selected boundary conditions.
Returns
L: scipy.sparse.sparrayThe shape is
(N, N)whereN = np.prod(grid_shape).
Aliases
-
scipy.sparse.linalg.LaplacianNd.tosparse