I have an array of W x H A1. There is another matrix W x M A2, where M <HOUR. It is assumed that these M-points along this measurement are placed in cells with an equal interval for all measurements of W. I achieved this
hopSize = H / M
A1[:, 0 : min(A1.shape[1], hopSize*M) : hopSize] = A2
Now I want to fill in the value of the anchor points M to fill all the points between these anchors along the dimension H, for example, the value Anchor 1 will be copied to each point for A1[:, Anchor1 : Anchor2].
I wonder if there is a way to achieve this without using a for-loop.
kakyo source
share