This is a solution, but it would be more suitable to have three lists, one for each dimension. So maybe:
(1024) // 1D
(32, 32) // 2D
(16, 16, 4) // 3D