robotsorcerer / Savitzky-Golay

Computes the Savitzky-Golay Filter coefficients.
Apache License 2.0
104 stars 32 forks source link

A Assert Error when running in Windows System #8

Open chjxidian opened 3 years ago

chjxidian commented 3 years ago

I transfer it to Windows Enviroment, I get a Error about Eigen Lib.

lhs.cols() == rhs.rows() && "invalid matrix product" && "if you wanted a coeff-wise or a dot product use the respective explicit functions", file E:\SavitzkyGolay\SavitzkyGolay\eigen\Eigen\src\Core\Product.h, line 98

How to solve it??? please help me...

chjxidian commented 3 years ago
//Compute Matrix of Differentiators
auto Rinv = R.inverse();
MatrixXf RinvT = Rinv.transpose();

//Error occer when running into this....

MatrixXf G = Sd * Rinv * RinvT;           /*G = S(S'S)^(-1)   -- eqn 8.3.90 (matrix of differentiation filters)*/

MatrixXf SdT = Sd.transpose().eval();

MatrixXf B = G * SdT * W;   //SG-Smoothing filters of length F and polynomial order k
journeytosilius commented 3 years ago

I have the exact same problem right now ... to me this just happens by running the example. Is this a change in Eigen maybe ?

chjxidian commented 3 years ago

I solve the problem, I Remove the assert codes in Eigen lib.