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

Unsupported ARPACK

Tags: eigen, eigenvalues, c, arpack eigen, eigenvalues, c, arpack eigen, eigenvalues, c, arpack
(comma "," separated)
jcarvalho
Registered Member
Posts
1
Karma
0

Unsupported ARPACK

Fri Apr 22, 2016 11:21 pm
Hi all,

I am trying to use the ARPACK wrapper to calculate the eigenvalues of a sparse matrix.

I arrived at this post https://forum.kde.org/viewtopic.php?f=74&t=111782, I have a similar code implementation, except I was trying to use an sparse arry.

The first reply says the class is only available for sparse arrays, but I don't understand how to implement the code. The solution was also not clear.

My sparse array is declared lie this

Code: Select all
SparseMatrix<double> Ho(size,size);


It is later filled by a function.

I am sorry if the problem was not expressed in the most correct way, I am new to this and new to eigen.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Unsupported ARPACK

Wed May 04, 2016 11:20 am
just follow the example in viewtopic.php?f=74&t=111782 and then call ev.eigenvalues()/ev.eigenvectors() to get the eigen values/vectors.

You might also consider using spectra: https://github.com/yixuan/spectra


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient