Registered Member
|
Hi,
I am trying to work with the tensor.shuffle(...) operation as described in the Tensor documentation (https://bitbucket.org/eigen/eigen/src/677c9f1577810e869f4f09881cabc3e503a810c1/unsupported/Eigen/CXX11/src/Tensor/README.md?at=default#markdown-header-api-reference). However, even this minimal example is not compiling:
I tried to compile with both icpc as well as g++. Both compilers are giving similar errors. Here is the log of icpc:
The compiler flags were: -O3 -std=c++14 Can someone please help me to solve this problem? Thanks |
Moderator
|
It seems you need to explicitly create an array:
Tip: to workaround the shortcoming of Tensor's doc use grep foo eigen/unsupported/test/*tensor*.cpp to find real working code making use of "foo". The rest of Eigen's doc (http://eigen.tuxfamily.org/dox) does not exhibit such issues because all code snippets/examples are compiled during the doc generation. |
Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]