reconstruct_skel_matrix — SciPy v1.15.3 Manual (original) (raw)
scipy.linalg.interpolative.
scipy.linalg.interpolative.reconstruct_skel_matrix(A, k, idx)[source]#
Reconstruct skeleton matrix from ID.
The skeleton matrix can be reconstructed from the original matrix A and its ID rank and indices k and idx, respectively, as:
The original matrix can then be reconstructed via:
numpy.hstack([B, numpy.dot(B, proj)])[:,numpy.argsort(idx)]
See also reconstruct_matrix_from_id andreconstruct_interp_matrix.
Parameters:
Original matrix.
kint
Rank of ID.
Column index array.
Returns:
Skeleton matrix.