See the below example to understand my question better.
Suppose their are two arrays A and B:
A=array([[1,2,3,4],
[5,6,7,8],
[9,10,11,12]])
B=array([[3,4,12,2],
[5,11,1,6],
[9,10,7,8]])
In B find the coordinates of top 5 elements(12,11,10,9,8) in it.
expected output1:
coordinates=(0,2)
(1,1)
(2,1)
(2,0)
(2,3)
Now, I want to multiply elements whose positions are in coordinates (0,2),(1,1),(2,1),(2,0),(2,3) in A with 10.
Then the expected output2 will be:
[30,60,100,90,120]