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

Sparse symmetric matrix not Hermitian

Tags: None
(comma "," separated)
jneilson
Registered Member
Posts
1
Karma
0
OS
Hi -

I am trying to use a SparseMatrix<complex<float> > matrix for a matrix vector multiply where the matrix is symmetric but not Hermitian. Code:

SparseMatrix<complex<float> > Aij;

// some code to initialize Aij which is symmetric (only fill upper) ...

// now do y = A*x
VectorXcf y = Aij.selfadjointView<Eigen::Upper>()*x;

The problem is the matrix Aij is symmetric but not equal to its conjugate transpose (i.e. not Hermitian). The above code treats the matrix as if it were Hermitian and so gets the wrong result. I could not find an operator that gives a view of the matrix as symmetric but not Hermitian. Is there one? I am using Eigen 3.

Help greatly appreciated!
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
Hi, I can only tell you that's in our todo list...


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft