Re: [eigen] simplex operations in Tensor package

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


This is mostly supported at the moment. Taking your example, assuming that alpha and beta are double, you can write:
RetTensor = Tens1 * alpha + Tens2 * beta;

We need to add a little more syntactic sugar to the code to be able to support alpha and beta on the left of the tensors as in:
RetTensor = alpha * Tens1 + beta * Tens2;


On Sat, Mar 5, 2016 at 9:44 AM, Mathieu Dutour <mathieu.dutour@xxxxxxxxx> wrote:
Hi,

would it be possible to have some basic arithmetic operation
in the tensor packages such as

RetTensor = alpha*Tens1 + beta*Tens2;

with say RetTensor, Tens1, and Tens2 of the
form Eigen::Tensor<double,3> ?

Thank you very much in advance.

  Mathieu



--


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