[diary #2] Numpy BroadCast

kamchur·2022년 10월 12일
0

long time no see, I'm studying everyday so hard that I don't meet my friends
but no regret, AI give funny and interesting to me


😁START

import

import numpy as np

prob

a = np.array([[5, 7],	
			  [3, 11]])

b = 6

a + b = ?

result

[[11, 13], 
 [9, 17]]

how possible these values, numpy's BroadCast implement

b → [[5, 5], 
	[5, 5]]

😂END

2022.10.13. first commit
profile
chase free

0개의 댓글