Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python NumPy broadcast_to() Function Example

# welcome to softhunt.net
# Python program explaining
# numpy.broadcast_to() function

# importing numpy as np
import numpy as np

arr = np.array([9, 7, 4])

softhunt = np.broadcast_to(arr, (3, 3))

print(softhunt)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #NumPy #Function #Example
ADD COMMENT
Topic
Name
2+8 =