{ } Raw JSON

bundles / scipy 1.17.1 / scipy / linalg / interpolative / reconstruct_matrix_from_id

function

scipy.linalg.interpolative:reconstruct_matrix_from_id

source: /scipy/linalg/interpolative.py :536

Signature

def   reconstruct_matrix_from_id ( B idx proj )

Summary

Reconstruct matrix from its ID.

Extended Summary

A matrix A with skeleton matrix B and ID indices and coefficients idx and proj, respectively, can be reconstructed as

numpy.hstack([B, numpy.dot(B, proj)])[:,numpy.argsort(idx)]

See also reconstruct_interp_matrix and reconstruct_skel_matrix.

Parameters

B : :class:`numpy.ndarray`

Skeleton matrix.

idx : :class:`numpy.ndarray`

Column index array.

proj : :class:`numpy.ndarray`

Interpolation coefficients.

Returns

: :class:`numpy.ndarray`

Reconstructed matrix.

Aliases

  • scipy.linalg.interpolative.reconstruct_matrix_from_id