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 #Function #Example
ADD COMMENT
Topic
Name
5+5 =