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([5, 6, 7, 8, 9, 10])

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

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