I want to make a wrapped acces type for certain internals of one of classes and I have some performa

Posted by Alex on Stack Overflow See other posts from Stack Overflow or by Alex
Published on 2010-06-15T17:19:05Z Indexed on 2010/06/15 17:22 UTC
Read the original article Hit count: 111

Filed under:
|

I am writing an abstract matrix class (and some concrete subclasses) for use on very differing hardwares/architectures, etc. and I want to write a row and column type that provides a transparent reference to the rows and columns of the matrix.

However, I want to tune for performance, so I'd like this class to be essentially a compiler construct. In other words, I'm willing to sacrifice some dev time to making the overhead of these classes as small as possible.

I assume all (small) methods would want to be virtual? Keep the structure small? Any other suggestions?

© Stack Overflow or respective owner

Related posts about c++

Related posts about matrix