{ } Raw JSON

bundles / scipy latest / scipy / sparse / linalg / _special_sparse_arrays / LaplacianNd / tosparse

function

scipy.sparse.linalg._special_sparse_arrays:LaplacianNd.tosparse

source: /scipy/sparse/linalg/_special_sparse_arrays.py :437

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.sparray

The shape is (N, N) where N = np.prod(grid_shape).

Aliases

  • scipy.sparse.linalg.LaplacianNd.tosparse