Wednesday, July 15

meshgrid and where functions in Numpy

meshgrid () :-
     => It takes two 1D arrays and produces two 2D matrices corresponding to all pairs for (x,y) in             the two arrays.

            


where () :-
    => The numpy.where() function is a vectorized version of the ternary expression .
                ex : x if condition else y .

            
            

    

No comments:

Post a Comment

thank Q

Are you looking for ......