Registered Member
|
I am trying to get the eigen3 package, particularly the JacobiSVD() routines to work, but running into problems.
Here's a sample program, it crashes with a float error (probably divide by zero) I have followed the information given by the eigen3 tux group, on implementing a new number type and the num traits seems right. My goal is very high accuracy (100 to 2000 digits) SVD factoring. I redid the source code again here, so that you can see the expected results. Does anyone know how to fix the float error? - American Gentile
|
Registered Member
|
I was able to resolve my problem with the C++ code by adding 2 includes on the header file,
#include <eigen3/Eigen/Core> #include <eigen3/Eigen/SVD> which then solved my main problem. As to the code above, I cannot get it to run yet, even though I have changed the includes to match the above. UPDATE: The compile problem is fixed, but I still cannot get my source code, nor the program above to run, they both get float exception error (divide by zero) which seems to be coming from unitialized values for RealScalar, as apparently they are NOT being updated and converted to mpf_class gmp C++ float class variables. Any ideas? I tried to carefully follow the mpq_class implementation given by the example on the tuk page, but the code continues to exception crash. - American code programmer struggling to implement eigen3 with mpf_class floats. |
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]