Repeated Permutation of Powers
Let’s say I have two radix/base values x
and y
(both are floats, not ints) and I need to quickly generate all combinations of:
How to put a Python numpy array back together from diagonals obtained from splitting the array into right to left diagonals in first place?
As I to my surprise failed to find a Python numpy method able to put an array split into its right to left diagonals in first place back together from the obtained diagonals, I have put some code together for this purpose, but have now hard time to arrive at the right algorithm. The code below works for the 4×3 array, but does not for the 3×5 and the other ones: