Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python NumPy broadcast_arrays() Function Example

# welcome to softhunt.net
# import numpy
import numpy as np

# using Numpy.broadcast_arrays() method
arr1 = np.array([[1, 2]])
arr2 = np.array([[3], [4]])

print(np.broadcast_arrays(arr1, arr2))
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #NumPy #Function #Example
ADD COMMENT
Topic
Name
4+9 =