{ } Raw JSON

bundles / scipy 1.17.1 / scipy / linalg / interpolative / reconstruct_skel_matrix

function

scipy.linalg.interpolative:reconstruct_skel_matrix

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

Signature

def   reconstruct_skel_matrix ( A k idx )

Summary

Reconstruct skeleton matrix from ID.

Extended Summary

The skeleton matrix can be reconstructed from the original matrix A and its ID rank and indices k and idx, respectively, as

B = A[:,idx[:k]]

The original matrix can then be reconstructed via

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

See also reconstruct_matrix_from_id and reconstruct_interp_matrix.

Parameters

A : :class:`numpy.ndarray`

Original matrix.

k : int

Rank of ID.

idx : :class:`numpy.ndarray`

Column index array.

Returns

: :class:`numpy.ndarray`

Skeleton matrix.

Aliases

  • scipy.linalg.interpolative.reconstruct_skel_matrix