def trace(matlist, K):
    result = K.zero
    for i in range(len(matlist)):
        result += matlist[i][i]
    return result
exports edl and xml representations of animation scenes
dataset/ETHPy150Open sympy/sympy/sympy/matrices/densetools.py/trace--crossover with--dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/publish.py/export_edl_and_xml