core.py 文件源码

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

项目:radar 作者: amoose136 项目源码 文件源码
def left_shift(a, n):
    """
    Shift the bits of an integer to the left.

    This is the masked array version of `numpy.left_shift`, for details
    see that function.

    See Also
    --------
    numpy.left_shift

    """
    m = getmask(a)
    if m is nomask:
        d = umath.left_shift(filled(a), n)
        return masked_array(d)
    else:
        d = umath.left_shift(filled(a, 0), n)
        return masked_array(d, mask=m)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号