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

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

[Octave-bug-tracker] [bug #53440] Wrong factorization with ilutp type


From: Rik
Subject: [Octave-bug-tracker] [bug #53440] Wrong factorization with ilutp type
Date: Tue, 27 Mar 2018 18:25:04 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Update of bug #53440 (project octave):

                  Status:          Patch Reviewed => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #4:

@Marco: There is an easier way to compute the transposed, permuted identity
matrix.  Instead of creating the speye matrix, permuting it via indexing, and
then calculationg the transpose of the result, it is possible te just
transpose the permuting index and then use that in a single indexing step.

Here is the code:


-            retval(0) = L + speye.index (perm, idx_vector::colon);
+            retval(0) = L + speye.index (idx_vector::colon, perm);


I benchmarked the original code construction and this method for speye(1e3)
and it was only 18% faster, but that is still worth something.

I checked in the patch here
(http://hg.savannah.gnu.org/hgweb/octave/rev/acb7094aebb3).

Marking as fixed and closing report.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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