scipy.linalg.interpolative.reconstruct_interp_matrix¶
- scipy.linalg.interpolative.reconstruct_interp_matrix(idx, proj)[源代码]¶
根据ID重建插值矩阵。
可以根据ID索引和系数重建内插矩阵 idx 和 proj ,分别为:
P = numpy.hstack([numpy.eye(proj.shape[0]), proj])[:,numpy.argsort(idx)]
然后,可以从其骨架矩阵重构原始矩阵 B 途经::
numpy.dot(B, P)
另请参阅
reconstruct_matrix_from_id
和reconstruct_skel_matrix
。- 参数
- idx :
numpy.ndarray
numpy.ndarray
列索引数组。
- proj :
numpy.ndarray
numpy.ndarray
插值系数。
- idx :
- 退货
numpy.ndarray
插值矩阵。