我正在寻找一个快速的BigFloat单元,它可以处理加法,减法,乘法和除法(日志很好,但不是必需的),并且其精度至少为100位小数。 我试过这个单元,但它比标准的扩展操作慢了大约1000倍。 那么,有没有人知道Delphi的快速(呃)BigFloat单元?
亨利
I'm looking for a fast BigFloat unit, which can deal with addition, subtraction, multiplication and division (log would be fine but isn't necessary) and which has a precision of at least 100 decimal places. I've tried this unit, but it's about 1,000 times slower than standard extended operations. So, does anyone know a fast(er) BigFloat unit for Delphi?
Henry
最满意答案
总结对OP问题的评论。
AC库可能是大型浮点库的最佳解决方案。
GMP声称是最快的免费图书馆,自1991年以来一直通过装配进行优化。
将此 Delphi包装器用于GMP库。
为了以更快的速度和合理的成本/精力,CUDA / GPU解决方案可以完成这项工作。 有工作正在进行,但我找不到最终的解决方案。
To summarize the comments to the OP's question.
A C library is probably the best solution for a big floating point library.
GMP claims to be the fastest free library, optimized with assembly and established since 1991.
Use this Delphi wrapper for the GMP library.
For even faster speed with reasonable cost/effort a CUDA/GPU solution would do the job. There are work going on, but I could not find a finalized solution.
更多推荐
发布评论