def triu(m, k=0):
    m = asanyarray(m)
    out = multiply((1-tri(m.shape[0], m.shape[1], k-1, int)),m)
    return out

# borrowed from John Hunter and matplotlib
Initialize a StreamResultHandler
dataset/ETHPy150Open nipy/nitime/nitime/index_utils.py/triu--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/python-ldap-2.3.13/Lib/ldap/async.py/DSMLWriter.__init__