I know how to vectorize() or apply function along axis .. but my case is a bit different. I have 1D array (z) that contains 1 or 0 and then I have a 2D array (x). I want to apply two different functions for every row in array-x depending on the value for this row in array-z.I know how to vectorize() or apply function alo