octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #41453] norm is really slow for sparse matrice


From: Massimiliano Fasi
Subject: [Octave-bug-tracker] [bug #41453] norm is really slow for sparse matrices
Date: Tue, 01 Apr 2014 08:46:28 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

Follow-up Comment #10, bug #41453 (project octave):

Thank you for your feedback. Yes, I know that EIG computes all the eigenvalues
of the matrix and is hence not the best choice, as we need just the largest
one. Of course, that could be easily done with eigs. Nevertheless, we cannot
call eigs from the file I am modifying, and I agree that the best choice would
be using an ARPACK call, as you suggested. Reading a bit of source code, I
think I've spotted the function I should use, that is defined in
liboctave/numeric/eigs-base.cc, but I'm facing some troubles, as there are
many parameters to call and I can't really understand how it works. I am
working on it, but I don't know wether I 'll be able to get there in a
reasonable amount of time.

I have tested my implementation with the current implementation in Octave. In
particular, I compared 


norm(A)


with


norm(full(A))


getting that the latter is up to five time faster than the former. Of course,
that's not good, but it should be better than the factor 1000 we had at the
beginning.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41453>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]