Re: [eigen] Warnings in NumericalDiff and MKL modules

[ Thread Index | Date Index | More Archives ]

Thanks, and you are correct, I was linking to the Eigen version that is included in the RcppEigen package for R.  That one is still at the alpha stage.

On Jun 15, 2012, at 1:59 AM, Gael Guennebaud wrote:


never too late ;)

The first one was indeed important.  For the second one, are you sure
you have the last 3.1.0-rc1? Here select is initialized to 0, and line
74 corresponds to the end of the macro definition, not
EIGEN_MKL_SCHUR_REAL(double,  ....


On Thu, Jun 14, 2012 at 10:39 PM, Michael Braun <braunm@xxxxxxx> wrote:
Hopefully this is not too late for 3.1.0, but in icpc, I get the following
warning (not sure why, since I don't use the NumericalDiff module)

include/unsupported/Eigen/src/NumericalDiff/NumericalDiff.h(66): warning
#488: template parameter "T2" is not used in declaring the parameter types
of function template "Eigen::NumericalDiff<_Functor,
mode>::NumericalDiff<T0,T1,T2>(const T0 &, const T1 &, const T1 &)"
      template<typename T0, typename T1, typename T2>

Here is the relevant code from NumericalDiff.h, line 68.  I suspect that
there needs to be a change from const T1& a2 to const T2& a2.

 template<typename T0, typename T1, typename T2>
       NumericalDiff(const T0& a0, const T1& a1, const T1& a2) :
Functor(a0, a1, a2), epsfcn(0) {}

I also get the following warnings when I include MKL support.  I haven't had
a chance to debug, but since the release date is so close, I wanted to let
you know.

/include/Eigen/src/Eigenvalues/RealSchur_MKL.h(74): warning #592: variable
"select" is used before its value is set
  EIGEN_MKL_SCHUR_REAL(double,   double, d, D, ColMajor, LAPACK_COL_MAJOR)

Michael Braun
MIT Sloan School of Management
View my research at

Michael Braun 
MIT Sloan School of Management
View my research at

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Mail converted by MHonArc 2.6.19+