utils.py
def zigzag2matrix(li):
    """convert a list of size 64 in zigzag order to a 8 by 8 matrix"""
    matrix = create_nd_array([8,8])
    for i, val in enumerate(li):
        x, y = zigzag[i]
        matrix[x][y] = val
    return matrix
convert a list of size 64 in zigzag order to a 8 by 8 matrix
convert a list of size 64 in zigzag order to a 8 by 8 matrix
convert a list of size 64 in zigzag order to a 8 by 8 matrix
def zigzag2matrix(li):
    matrix = create_nd_array([8,8])
    for i, val in enumerate(li):
        x, y = zigzag[i]
        matrix[x][y] = val
    return matrix
def zigzag2matrix ( li ) : matrix = create_nd_array ( [ 8 , 8 ] ) for i , val in enumerate ( li ) : x , y = zigzag [ i ] matrix [ x ] [ y ] = val return matrix
convert a list of size 64 in zigzag order to a 8 by 8 matrix
convert a list of size 64 in zigzag order to a 8 by 8 matrix
"""convert a list of size 64 in zigzag order to a 8 by 8 matrix"""
li