array([[0, 13, 26], [2, 13, 24], [0, 12, 24], [1, 13, 25], [2, 14, 26], [6,
    13, 20], [8, 13, 18], [6, 12, 18], [7, 13, 19], [8, 14, 20], [0, 10, 20
    ], [2, 10, 18], [0, 9, 18], [1, 10, 19], [2, 11, 20], [3, 13, 23], [5, 
    13, 21], [3, 12, 21], [4, 13, 22], [5, 14, 23], [6, 16, 26], [8, 16, 24
    ], [6, 15, 24], [7, 16, 25], [8, 17, 26], [0, 4, 8], [2, 4, 6], [0, 3, 
    6], [1, 4, 7], [2, 5, 8], [0, 1, 2], [3, 4, 5], [6, 7, 8], [9, 13, 17],
    [11, 13, 15], [9, 12, 15], [10, 13, 16], [11, 14, 17], [9, 10, 11], [12,
    13, 14], [15, 16, 17], [18, 22, 26], [20, 22, 24], [18, 21, 24], [19, 
    22, 25], [20, 23, 26], [18, 19, 20], [21, 22, 23], [24, 25, 26]])
Find all n-dimensional lines and diagonals with NumPy