expression templates vs D arrays
Jay Norwood
jayn at prismnet.com
Wed Dec 7 20:27:41 PST 2011
I've been reading about the use of expression templates in this blitz page, which provides arrays implemented by c++ templates. They have some convenient features, such as array initialization with auto-incrementing array index values in the expressions and applying a cast operator to an entire array within an expression. Do D built-in array operations and initialization include these type of features, or would you need to create some similar D template implementation to guarantee the efficient expression evaluation and similar initialization features?
http://www.oonumerics.org/blitz/docs/blitz_3.html#SEC80
More information about the Digitalmars-d
mailing list