Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python NumPy atleast_3d Function Example when inputs are high dimesion

# welcome to softhunt.net
# Python program explaining
# numpy.atleast_3d() function
# when inputs are in high dimension

import numpy as np

in_arr = np.arange(16).reshape(1, 4, 4)
print ("Input array :
 ", in_arr)

out_arr = np.atleast_3d(in_arr)
print ("output array :
 ", out_arr)
print(in_arr is out_arr)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #NumPy #Function #Example #inputs #high #dimesion
ADD COMMENT
Topic
Name
1+7 =