[eigen] best way to map matlab mex complex data to tensor

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


Hi,

What's the best way to map a MATLAB mex complex input into a tensor?  I found the following link which suggests the only way is to copy similar to:

MatrixXcd mat(m,n);
mat.real() = Map<MatrixXd>(realData,m,n);
mat.imag() = Map<MatrixXd>(imagData,m,n);

Is there a better way?

Thks,
Chris

https://forum.kde.org/viewtopic.php?f=74&t=89083&p=164394&hilit=matlab+complex#p164394




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