nigsp.operations.laplacian.recomposition

nigsp.operations.laplacian.recomposition(eigenval, eigenvec)[source]

Recompose a matrix from its eigenvalues and eigenvectors.

At the moment, it supports only 2D (not stacks).

Parameters:
eigenvalnumpy.ndarray

Array of eigenvalues. The program detects if it’s a diagonal matrix or not.

eigenvecnumpy.ndarray

Matrix of eigenvectors.

Returns:
numpy.ndarray

The reconstructed matrix