inversion.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:stfinv 作者: seismology 项目源码 文件源码
def _create_Toeplitz(data, npts_stf):
    # Desired dimensions: len(data) + npts_stf - 1 x npts_stf
    nrows = npts_stf + len(data) - 1
    data_col = data
    first_col = np.r_[data_col,
                      np.zeros(nrows - len(data_col))]

    ncols = npts_stf
    first_row = np.r_[data[0], np.zeros(ncols - 1)]
    return toeplitz(first_col, first_row)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号