Registered Member
|
It looks like this problem has appeared a few times, but i can't get a solution from older threads.
I'm trying to copy my matrix of qd_real type to double matrix. QD_real is a "quad double" type from there: http://crd-legacy.lbl.gov/~dhbailey/mpdist/
And gcc can't figure out how to do static_cast.
The original problem I encountered was printing matrix to stream:
... casting to double only change a type in error message: cout<<M.cast<double>() <<endl;
Do You have any idea how to fix it? Edit: the problem was in qd library. After adding
to class, and
after functions declaration, it seems to work. |
Moderator
|
I confirm that the solution you came up with is the right one.
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]