Since it eigsis actually a function of the m file, we can profile it. I performed a few basic tests, and it greatly depends on the nature of the data in the matrix. If we run the profiler separately in the following two lines of code:
eigs(eye(1000), 10, 'lm'), and
eigs(eye(1000), 10, 'sm'),
then in the first case it calls arpackc(the main function that performs the work - according to the comments to eigs, probably from here ) a total of 22 times. In the second case, it is called 103 times.
On the other hand, having tried it with
eigs(rand(1000), 10, 'lm'), and
eigs(rand(1000), 10, 'sm'),
, 'lm' arpackc , sm.
, , , ARPACK . , rand, , , , , , , .
: , , . , , , .
: , , , , - .