Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
あなたの知らないNumPyの世界〜2025年版NumPy怪談〜
Search
Kimikazu Kato
February 19, 2026
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
あなたの知らないNumPyの世界〜2025年版NumPy怪談〜
Kimikazu Kato
February 19, 2026
More Decks by Kimikazu Kato
See All by Kimikazu Kato
2026年6月23日 Syncable Tech + Start Python Club にて
hamukazu
0
160
PyTorchの最近の動向
hamukazu
0
860
Python 3.11: What changed in math?
hamukazu
0
550
機械学習も筋肉が大事?意外と知らない数学
hamukazu
0
1k
レコメンデーションシステムのキホン
hamukazu
4
970
機械学習の中身を理解する
hamukazu
28
10k
機械学習に役立つ数学
hamukazu
11
6.5k
Pythonと数学と 多面体とペーパークラフトとベルヌーイと長門屋と田宮模型と私
hamukazu
1
1.8k
Featured
See All Featured
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
500
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
200
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
120k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6k
Designing for Timeless Needs
cassininazir
1
320
The World Runs on Bad Software
bkeepers
PRO
72
12k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
220
Thoughts on Productivity
jonyablonski
76
5.2k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.9k
Testing 201, or: Great Expectations
jmmastey
46
8.2k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
460
Transcript
2026/2/19 ΈΜͳͷPythonษڧձ Ճ౻ެҰ Horror Story In NumPy ͋ͳͨͷΒͳ͍NumPyͷੈք ʙ2025൛NumPyոஊʙ
ࣗݾհ Ճ౻ެҰʢ͔ͱ͏͖Έ͔ͣʣ X: @hamukazu झຯɿ͍ܰےτϨ ஶॻ New!
ϓϩϩʔά ڈ3݄ɺ৽͍͠Mac Book ProΛങ͍·ͨ͠
ࣥචͷͨΊNumPyΛ͍ͬͯͨ͡Β͜Μͳ͕ >>> np.eye(15) @ np.eye(15) <python-input-2>:1: RuntimeWarning: divide by zero
encountered in matmul np.eye(15) @ np.eye(15) <python-input-2>:1: RuntimeWarning: overflow encountered in matmul np.eye(15) @ np.eye(15) <python-input-2>:1: RuntimeWarning: invalid value encountered in matmul np.eye(15) @ np.eye(15)
෮शɿߦྻͷੵ ͷͱ͖ ֻ͚ࢉͱ͠ࢉ͔͍ͯ͠͠ͳ͍ Devision by Zero͕ى͜Δ͕ͣͳ͍ʂʂ
৺ྶݱʁ
None
GitHubͷIssue https://github.com/numpy/numpy/issues/28687
ঢ়·ͱΊ • NumPy2.2.4Ͱɺߦྻͷ@ԋࢉࢠͰDivision by Zeroܯࠂ • M4 Mac͚ͩͰ࠶ݱ • np.eye(14)
@ np.eye(14)Ͱ࠶ݱͤͣɺnp.eye(15) @ np.eye(15)Ͱ࠶ݱ • @ԋࢉࢠͰ࠶ݱ͢Δ͕ɺnp.dotͰ࠶ݱͤͣ • όοΫΤϯυΛOpenBLASʹมߋ͢Δͱ࠶ݱͤͣ
ݪҼ • M4͔ΒSMEʢScalable Matrix Extensionʣͱ͍͏ߦྻܭࢉઐ༻ͷ໋ྩηοτ ͕ಋೖ͞Εͨ • SME͕ݺͼग़͞ΕΔͱྫ֎ϑϥά͕શ෦1ʹͳΔʢͦͷ༷Ͳ͏ͳͷΑʁʣ • NumPy͕ͦͷϑϥάΛಡΜͰWarning
·ͱΊ • NumPyΪϦΪϦ·ͰύϑΥʔϚϯενϡʔχϯά͍ͯ͠ΔͷͰɺCPUͷ ༷มߋͷӨڹΛड͚Δ͜ͱ͕͋Δ • GitHubͷIssueͷٞΛಡΉͷָ͍͠ʂ