Registered Member
|
I have been using the dd_real data type from the QD library when solving Generalized eigenvalue problems. I had to make some minor modifications to the GeneralizedSelfAdjointEigenSolver routine but it now works well with the dd_real data type.
I am trying to do the same to the GeneralizedEigenSolver routine which uses the QZ decomposition. I get the following error when compiling:
The line in question from AssignmentFunctor is the following:
The error is stating that the compiler does not understand the cast dd_real = std::complex<dd_real>. With the QD library I thought that to include complex numbers the Fortran bindings, fpu.h, needed to be imported; but it does not appear to work. Is there a way to static cast this? Oddly I managed to get it working once by just setting a == b. This produced the correct answers from GeneralizedEigenSolver; but it no longer works and just sets all matrix elements to 0 during a Map procedure. I am still trying to understand what I did with this; but wondered if there is a better (correct) way to do it. Many thanks |
Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell