检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]江西省轻工高级技校,江西宜春336000 [2]南京理工大学,江苏南京210094
出 处:《现代电子技术》2009年第4期80-85,共6页Modern Electronics Technique
基 金:国家自然科学基金资助项目(60703072)
摘 要:量纲误用是科学计算应用程序中一种常见的错误,对计算结果的正确性影响很大。在此提出一种基于模板元编程的量纲检测方法TADA,能够有效完成C和C++程序代码的量纲检测工作。该方法利用程序设计语言自身的模板元编程功能,通过定义相关的量纲模板及其计算和标注方法,依靠编译器在编译期间完成量纲分析和检测,无需任何运行开销,有效解决了传统量纲检测系统中解方程组的计算量瓶颈等问题。Misuse of measurement units is a common mistake in many scientific computing applications. It greatly influences the correctness of the application results. TADA,a tool that effectively detects errors of this kind for C/C^++ programs is proposed. Making use of the function of template meta - programming in the language itself, TADA analyses the dimensional units and detects mismatches only by a standard C++ compiler in compile time without any runtime overhead. It avoids the computational bottleneck of solving linear equations introduced by traditional methods.
分 类 号:TP393[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.28