sdatkinson / NeuralAmpModelerCore

Core DSP library for NAM plugins
MIT License
304 stars 61 forks source link

eigen-3.4.0 doesn't have Eigen::placeholders::lastN #103

Closed yurivict closed 6 months ago

yurivict commented 6 months ago

This line fails to compile:

In file included from ../src/NAM/NeuralAmpModelerCore/NAM/lstm.cpp:5:
../src/NAM/NeuralAmpModelerCore/NAM/lstm.h:26:84: error: no member named 'lastN' in namespace 'Eigen::placeholders'
   26 |   Eigen::VectorXf get_hidden_state() const { return this->_xh(Eigen::placeholders::lastN(this->_get_hidden_size())); };
      |                                                               ~~~~~~~~~~~~~~~~~~~~~^

The latest eigen-3.4.0 is used.

What version of Eigen are you using that it is able to build with?