It would probably help if you would give the shape of the arrays (and is the above an array)