def tril(m, k=0):
    m = asanyarray(m)
    out = multiply(tri(m.shape[0], m.shape[1], k=k, dtype=int),m)
    return out
Lower triangle of an array.
dataset/ETHPy150Open nipy/nitime/nitime/index_utils.py/tril