scipy.linalg.interpolative.

reconstruct_interp_matrix#

scipy.linalg.interpolative.reconstruct_interp_matrix(idx, proj)[Quelle]#

Rekonstruiere Interpolationsmatrix aus ID.

Die Interpolationsmatrix kann aus den ID-Indizes und Koeffizienten idx bzw. proj wie folgt rekonstruiert werden:

P = numpy.hstack([numpy.eye(proj.shape[0]), proj])[:,numpy.argsort(idx)]

Die ursprüngliche Matrix kann dann aus ihrer Skelettmatrix B über A = B @ P rekonstruiert werden.

Siehe auch reconstruct_matrix_from_id und reconstruct_skel_matrix.

Parameter:
idxnumpy.ndarray

1D-Spaltenindex-Array.

projnumpy.ndarray

Interpolationskoeffizienten.

Rückgabe:
numpy.ndarray

Interpolationsmatrix.