def arrayInvert(array):
    result = [[] for i in array]
    for outer in array:
        for inner in range(len(outer)):
            result[inner].append(outer[inner])
    return result
Inverts a matrix stored as a list of lists.
dataset/ETHPy150Open rlpy/rlpy/rlpy/Domains/PacmanPackage/util.py/arrayInvert