scipy.linalg.interpolative.reconstruct_matrix_from_id¶
-
scipy.linalg.interpolative.reconstruct_matrix_from_id(B, idx, proj)[source]¶ Reconstruct matrix from its ID.
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_matrixandreconstruct_skel_matrix.Parameters: B :
numpy.ndarraySkeleton matrix.
idx :
numpy.ndarrayColumn index array.
proj :
numpy.ndarrayInterpolation coefficients.
Returns: Reconstructed matrix.