This forum has been archived. All content is frozen. Please use KDE Discuss instead.

std::complex<long double> support for Eigen 3.

Tags: None
(comma "," separated)
tsmits
Registered Member
Posts
1
Karma
0
I do not understand the wiki about implementing custom scalar types.

I have found a solution on this forum but it appears to be broken (post is from 2010).

Can someone help me by making a proper header file?
How do you implement the basic functions like MatrixX3cd but for complex long doubles, for instance MatrixX3cld?

Thank you!
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
You should not have anything special to do. Simply use something like: Matrix<std::complex<long double>, Dynamic, 3> and make some typedefs if you want.
PersiaCat
Registered Member
Posts
2
Karma
0
ggael wrote:You should not have anything special to do. Simply use something like: Matrix<std::complex<long double>, Dynamic, 3> and make some typedefs if you want.


I am diagonalizing std::complex< long double> matrices. The program works fine but at the end I get this error massage:
*** Error in `./ld.out': corrupted double-linked list: 0x0000000001e14fc0 ***
Could you please help me on this matter?
PersiaCat
Registered Member
Posts
2
Karma
0
PersiaCat wrote:
ggael wrote:You should not have anything special to do. Simply use something like: Matrix<std::complex<long double>, Dynamic, 3> and make some typedefs if you want.


I am diagonalizing std::complex< long double> matrices. The program works fine but at the end I get this error massage:
*** Error in `./ld.out': corrupted double-linked list: 0x0000000001e14fc0 ***
Could you please help me on this matter?



I solved the problem!!


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]