Answers for "Python NumPy atleast_2d Function Example when inputs are in high dimension"

0

Python NumPy atleast_2d Function Example when inputs are in high dimension

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

import numpy as np

in_arr = np.arange(9).reshape(3, 3)
print ("Input array :\n ", in_arr)

out_arr = np.atleast_2d(in_arr)
print ("output array :\n ", out_arr)
print(in_arr is out_arr)
Posted by: Guest on April-21-2022

Code answers related to "Python NumPy atleast_2d Function Example when inputs are in high dimension"

Python Answers by Framework

Browse Popular Code Answers by Language