PTT
Submit
Submit
選擇語言
正體中文
简体中文
PTT
Python
Re: [問題] 高維矩陣內積
作者:
newmilktea
2016-10-14 16:51:21
這是你要的嗎?
a = np.array([[1,2],[3,4],[5,6],[7,8]])
array([[1, 2],
[3, 4],
[5, 6],
[7, 8]])
b = np.array([1,2])
array([1, 2])
np.multiply(a.reshape(2,4).T, b).T.reshape(4,2)
array([[ 1, 2],
[ 3, 4],
[10, 12],
[14, 16]])
作者:
ice80712
(我很有事)
2016-10-15 13:56:00
了解,感謝!
繼續閱讀
[問題] 高維矩陣內積
ice80712
Re: [問題] 隱藏類別中的屬性
uranusjr
[問題] 隱藏類別中的屬性
icetofux
Re: [問題] DataFrame挑選特定值後的處理
IMPOSSIBLEr
[問題] DataFrame挑選特定值後的處理
jimmy15923
[問題] django的csrf_token
vanchy
[問題]已解決 尋找文章匹配的字出現次數
Dyewiz
[問題] jupyter 出現in[*]不能執行
hesitate82
[問題] print UnicodeEncodeError: 'cp950'
ggirls
[問題]關於 python3 Request用法的請教??
processior
Links
booklink
Contact Us: admin [ a t ] ucptt.com