Answers for "Python Zigzag a matrix for dct"

0

Python Zigzag a matrix for dct

np.concatenate([np.diagonal(a[::-1,:], i)[::(2*(i % 2)-1)] for i in range(1-a.shape[0], a.shape[0])])
Posted by: Guest on May-08-2021

Code answers related to "Python Zigzag a matrix for dct"

Browse Popular Code Answers by Language