Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Broadcasting with NumPy Arrays Single dimension array Example

# welcome to softhunt.net
import numpy as np
a = np.array([34, 23, 12]) # 1x3 Dimension array
print(a)
b = 5
print(b)

# Broadcasting happened because of
# miss match in array Dimension.
c = a + b
print(c)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Broadcasting #NumPy #Arrays #Single #dimension #array #Example
ADD COMMENT
Topic
Name
9+5 =