Via HN: news.ycombinator.com/item?id=4074... (which provides important addenda)
#Calculator #Mathematics #Maths #Logarithms #TaylorSeries #NumericalMethods #NumericalAnalysis #FastMath
Via HN: news.ycombinator.com/item?id=4074... (which provides important addenda)
#Calculator #Mathematics #Maths #Logarithms #TaylorSeries #NumericalMethods #NumericalAnalysis #FastMath
numpyのufuncを作って関数をベクトル化、数値演算の制約をfastmath最適化で回避しつつJITコンパイルすれば速くなる可能性はある。ただ素のnumpyでのバッチ化matmulも相当速いので、どっちが速いかは謎。(結局0.05秒しか変わらないとかだと悲しい。)
numpyのufuncを作って関数をベクトル化、数値演算の制約をfastmath最適化で回避しつつJITコンパイルすれば速くなる可能性はある。ただ素のnumpyでのバッチ化matmulも相当速いので、どっちが速いかは謎。(結局0.05秒しか変わらないとかだと悲しい。)
https://blog.0x32.co.uk/posts/fractalpy/
https://blog.0x32.co.uk/posts/fractalpy/
The precise agenda and date (tentative: March 2026) will be determined based on your feedback.
clojureverse.org/t/upcoming-m...
The precise agenda and date (tentative: March 2026) will be determined based on your feedback.
clojureverse.org/t/upcoming-m...
L: https://simonbyrne.github.io/notes/fastmath/
C: https://news.ycombinator.com/item?id=44142472
posted on 2025.05.31 at 03:05:57 (c=0, p=4)
L: https://simonbyrne.github.io/notes/fastmath/
C: https://news.ycombinator.com/item?id=44142472
posted on 2025.05.31 at 03:05:57 (c=0, p=4)
https://simonbyrne.github.io/notes/fastmath/
https://news.ycombinator.com/item?id=44142472
サイモンのノートでは、「ファストマス」コンパイラフラグの使用に対する警告が述べられています。このフラグは、さまざまなプログラミング言語において計算速度を向上させる一方で、浮動小数点計算における不正確さを引き起こす可能性があります。彼は、この最適化に伴うリスクに関する文書が限られていることを強調しており、特にGCCやJuliaでは、`-ffast-math`や`@fastmath`のようなフラグがコンパイラにIEEE 754標準を無視させることができ、結果として不正確な結果をもたらす可能性があると指摘しています。NaNのチェックを省略したり、 (1/3)
サイモンのノートでは、「ファストマス」コンパイラフラグの使用に対する警告が述べられています。このフラグは、さまざまなプログラミング言語において計算速度を向上させる一方で、浮動小数点計算における不正確さを引き起こす可能性があります。彼は、この最適化に伴うリスクに関する文書が限られていることを強調しており、特にGCCやJuliaでは、`-ffast-math`や`@fastmath`のようなフラグがコンパイラにIEEE 754標準を無視させることができ、結果として不正確な結果をもたらす可能性があると指摘しています。NaNのチェックを省略したり、 (1/3)
https://simonbyrne.github.io/notes/fastmath/
https://simonbyrne.github.io/notes/fastmath/
https://simonbyrne.github.io/notes/fastmath/
https://simonbyrne.github.io/notes/fastmath/