首页> 外文期刊>IEEE Computer Graphics and Applications >Optimizing C++ vector expressions
【24h】

Optimizing C++ vector expressions

机译:优化C ++向量表达式

获取原文
获取原文并翻译 | 示例
           

摘要

Recently, I've been entertaining myself by studying all the nifty new programming techniques that have been invented since I was in school. I started with C++ and object-oriented programming. I'm now progressing through generic programming, aspect-oriented programming, partial evaluation and generative programming. What I'm really interested in is whether all these tricks work in the real world of graphics programming. My answer so far is "Yes, but...". To see "but what?", I define one of the problems I want to solve in in this article. I wanted to have a programming language that defined vectors and the arithmetic operations between them. C++ allows me to do this, but there are various pitfalls in doing this well. This article addresses one of these pitfalls: the speed of execution of vector arithmetic. The conventional approach turns out to be somewhat slow, but there's a very tricky technique that can make vector arithmetic very fast. It's based on the work of T. Veldhuizen (1998) and uses the C++ template mechanism in bizarre and unexpected ways.
机译:最近,我一直在学习自己在学校以来发明的所有新颖的编程技术,以娱乐自己。我从C ++和面向对象的编程开始。我现在正在通过通用编程,面向方面的编程,部分评估和生成式编程进行学习。我真正感兴趣的是,所有这些技巧在图形编程的现实世界中是否有效。到目前为止,我的回答是“是,但是...”。要看到“但是什么?”,我定义了本文要解决的问题之一。我想拥有一种定义矢量和它们之间的算术运算的编程语言。 C ++允许我执行此操作,但是执行此操作有很多陷阱。本文解决了这些陷阱之一:向量算术的执行速度。事实证明,传统方法有些慢,但是有一种非常棘手的技术可以使向量算术非常快。它基于T. Veldhuizen(1998)的工作,并以奇怪且出乎意料的方式使用C ++模板机制。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号