用于Delphi的快速BigFloat单元 [英] Fast BigFloat unit for Delphi

查看:270
本文介绍了用于Delphi的快速BigFloat单元的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个快速的BigFloat单位,它可以处理加法,减法,乘法和除法(日志会很好,但不是必需的),其精度至少为100位小数。
我已经尝试过这个单元,但它比标准慢约1000倍扩展操作。
那么,有没有人知道Delphi的FastFlat(呃)BigFloat单元?



Henry

解决方案

总结OP的问题的意见。



AC库可能是大型浮点库的最佳解决方案。 p>

GMP 声称是最快的免费库,通过汇编和自1991年以来成立。



使用这个的Delphi包装器为GMP库。



为了更快的速度与合理的成本/努力,CUDA / GPU解决方案将完成这项工作。
有正在进行的工作,但是找不到最终解决方案。


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

解决方案

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.

这篇关于用于Delphi的快速BigFloat单元的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆