fourier.py 文件源码

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

项目:dft 作者: rosenbrockc 项目源码 文件源码
def Y(W, cell=None):
    """Returns the normalized wave function `Y` (eq. 6 in Ps2).

    Args:
        W (numpy.ndarray): wave function sample points.
        cell (pydft.geometry.Cell): describing the unit cell and sampling
          points.
    """
    from scipy.linalg import sqrtm
    Usq = sqrtm(np.linalg.inv(U(W, cell)))
    return np.dot(W, Usq)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号