跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

统计学 > 计算

arXiv:1504.02914 (stat)
[提交于 2015年4月11日]

标题:Representing numeric data in 32 bits while preserving 64-bit precision

作者:Radford M. Neal
查看论文《Representing numeric data in 32 bits while preserving 64-bit precision》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Data files often consist of numbers having only a few significant decimal digits, whose information content would allow storage in only 32 bits. However, we may require that arithmetic operations involving these numbers be done with 64-bit floating-point precision, which precludes simply representing the data as 32-bit floating-point values. Decimal floating point gives a compact and exact representation, but requires conversion with a slow division operation before it can be used. Here, I show that interesting subsets of 64-bit floating-point values can be compactly and exactly represented by the 32 bits consisting of the sign, exponent, and high-order part of the mantissa, with the lower-order 32 bits of the mantissa filled in by table lookup, indexed by bits from the part of the mantissa retained, and possibly from the exponent. For example, decimal data with 4 or fewer digits to the left of the decimal point and 2 or fewer digits to the right of the decimal point can be represented in this way using the lower-order 5 bits of the retained part of the mantissa as the index. Data consisting of 6 decimal digits with the decimal point in any of the 7 positions before or after one of the digits can also be represented this way, and decoded using 19 bits from the mantissa and exponent as the index. Encoding with such a scheme is a simple copy of half the 64-bit value, followed if necessary by verification that the value can be represented, by checking that it decodes correctly. Decoding requires only extraction of index bits and a table lookup. Lookup in a small table will usually reference cache; even with larger tables, decoding is still faster than conversion from decimal floating point with a division operation. I discuss how such schemes perform on recent computer systems, and how they might be used to automatically compress large arrays in interpretive languages such as R.
主题: 计算 (stat.CO); 数学软件 (cs.MS); 数值分析 (cs.NA); 数值分析 (math.NA)
引用方式: arXiv:1504.02914 [stat.CO]
  (或者 arXiv:1504.02914v1 [stat.CO] 对于此版本)
  https://doi.org/10.48550/arXiv.1504.02914

提交历史

来自:Radford M. Neal
[v1] 2015年4月11日 星期六 20:33:06 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

stat.CO
< 上一篇   |   下一篇 >
最新 | 近期 | 2015-04
切换浏览方式为:
stat
cs.MS
cs.NA
math.NA

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站