This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / linalg / interpolative / reconstruct_interp_matrix

function

scipy.linalg.interpolative:reconstruct_interp_matrix

source: build-install/usr/lib/python3.14/site-packages/scipy/linalg/interpolative.py:573

Signature

def reconstruct_interp_matrix(idx, proj)

Summary

Reconstruct interpolation matrix from ID.

Extended Summary

The interpolation matrix can be reconstructed from the ID indices and coefficients idx and proj, respectively, as

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

The original matrix can then be reconstructed from its skeleton matrix B via A = B @ P

See also reconstruct_matrix_from_id and reconstruct_skel_matrix.

Parameters

idx : :class:`numpy.ndarray`

1D column index array.

proj : :class:`numpy.ndarray`

Interpolation coefficients.

Returns

: :class:`numpy.ndarray`

Interpolation matrix.

Aliases

  • scipy.linalg.interpolative.reconstruct_interp_matrix