[eigen] [RFC] Tensor module: class hierarchy

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

Hi there,

I am currently working on the tensor module to try to make it more
useful. (In case you are not familiar with it: I put some introductory
words in the wiki: [1])

The current state is: it basically only stores data for now.

My goal for the immediate future is to implement a class hierarchy
similar to that which Eigen uses itself. This will then allow me to
introduce some basic expressions such as adding two tensors etc, which
will immediately make the tensor module quite a bit more useful than

My problem here is that I have some conceptual questions I'd like to
discuss before proceeding. I've documented the details under:

Basically I have three immediate things I'd like to have feedback on:

1. the names of the new class hierarchy: do you agree or do you have
   better ideas?

2. packet access for tensors: should I just deviate from Eigen by
   changing the argument order of writePacket for tensors or should
   writePacket() for tensors only accept std::array for index
   specification? (see wiki page for an explanation)

3. expression template names: is it possible to somehow reuse the
   CwiseBinaryOp etc. names for tensors (obviously with a different
   implementation behind it) or do I have to go the way of

Any other general comments / ideas / suggestions are of course also welcome.

Thank you!


[1] http://eigen.tuxfamily.org/index.php?title=Tensor_support

Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/