I have 2 arrays as follow:
l=
array([[1205, 1420, 1340],
[1306, 1530, 1045],
[2001, 135, 1207],
...]])
y=
array([[1200, 1320, 2001],
[1306, 1530, 1045],
...,
[ 0, 3, 0]])
I would like to find the fastest way to replace values (the sub arrays) in l that are in y by [1000,1000,1000].
for example I would get:
l=
array([[1205, 1420, 1340],
[1000, 1000, 1000],
[2001, 135, 1207],
...]])
So far I've tried a 'for' loop with 'if' condition but it takes too much time.
Thanks for your suggestions.
y? Or only check for matching corresponding rows.y.