numpy.empty (shape, dtype = float, order = & # 39; C & # 39;): return a new array of the given shape and type with random values.
Parameters :
-" shape: Number of rows -" order: C_contiguous or F_contiguous -" dtype: [optional, float (by Default)] Data type of returned array.
|
Output:
Matrix b: [0 1079574528] Matrix a: [[0 0] [ 0 0]] Matrix a: [[0. 0. 0.] [0. 0. 0.] [0. 0. 0.]]
Note: empty , unlike zeros, not a mustache Sets the array values to zero, and therefore may be slightly faster.
Also, these codes will not work on an online ID. Please run them on your systems to see how they work