Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

creating numpy array using empty

import numpy as np
   
b = np.empty(2, dtype = int)
print("Matrix b : 
", b)
   
a = np.empty([2, 2], dtype = int)
print("
Matrix a : 
", a)
   
c = np.empty([3, 3])
print("
Matrix c : 
", c)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #creating #numpy #array #empty
ADD COMMENT
Topic
Name
3+2 =